The main actions that we need to enable are movements left, right, up and down. If you've already played 2048, then you know that when you move in a direction, tiles with values move to empty tiles, and tiles with the same value combine.
2048 (part 5)
You must be signed in to leave a comment
Dawid Bujnicki Junior Developer
3 January 2022, 00:45
Dummy tip: consolidateTiles() does NOT call mergeTiles(), read carefully or you will have that: "You solved it in 14 attempts."
29 September 2020, 16:59
Pro tip: The mergeTiles() method is different than in the Games section. The mergeTiles() for this one should add the 0 at the end of the row, not right after tiles[i]. I wasted a good few hours on this because of that.