Skip to content

Instantly share code, notes, and snippets.

@amirh
Created January 19, 2018 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amirh/e387816a719d5b0aed351265089826d0 to your computer and use it in GitHub Desktop.
Save amirh/e387816a719d5b0aed351265089826d0 to your computer and use it in GitHub Desktop.
test('move right', () {
BoardState state = new BoardState([
[0, 2, 0, 0],
[0, 2, 0, 2],
[8, 0, 4, 4],
[2, 2, 0, 2],
]);
expect(state.moveRight().tiles, [
[0, 0, 0, 2],
[0, 0, 0, 4],
[0, 0, 8, 8],
[0, 0, 2, 4],
]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment