We'll use the game engine to display the current state of the game. And a 4x4 array is perfect for storing
the state.
So, create an int[][] gameField field and initialize with a SIDExSIDE int[][] array.
By default, the elements of the int array are initialized with zeros. Let zeros represent an em
2048 (Part 3/18)
- 3
Locked
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Manish Sinha
28 January 2020, 07:16
hint: add createGame() as private
+4