2048 (Part 10/18)

  • 3
  • Locked
We already know which methods are invoked by which keystrokes. So let's start implementing them. Let's start with the moveLeft method(). In the moveLeft() method, we shift the elements of each row of the gameField matrix using the compressRow(int[]) method. We merge their values using the mergeRow
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
Olek
Level 41 , Amsterdam, Netherlands
7 November 2019, 19:16
Why it is failing with this requirement: "The moveLeft() method must add a tile using the createNewNumber() method if a move or merger has occurred." I check it on line 123 and call createNewNumber();
Olek
Level 41 , Amsterdam, Netherlands
7 November 2019, 19:46
no worries, I figured it out.