2048 (part 5)

  • 36
  • Locked
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.
You can't complete this task, because you're not signed in.
Comments (2)
  • Popular
  • New
  • Old
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."
Dave Andrea
Level 41 , Canada
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.