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
2048 (Part 10/18)
- 3
Locked
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Olek
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();
0
Olek
7 November 2019, 19:46
no worries, I figured it out.
0