Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.