The Game 2048
- 2048 https://play2048.co/
- Game rules
- You might also notice that there is a field “Score” at the bottom of the screen that is being updated with each move. The score will not always change every move, but only when two tiles merge. Your code will need to update the score.
- Each time two tiles merge to form a larger tile, the player earns the number of points on the new tile. The game ends when the current player has no available moves (no tilt can change the board), or a move forms a square containing 2048. Your code will be responsible for detecting when the game is over.
- The “Max Score” is the maximum score the user has achieved in that game session. It isn’t updated until the game is over.
Your assignment
- Main Tasks of the lab project 0 is to modify and complete the game of 2048.
- Especially, the model class, and the following methods - emptySpaceExists , maxTileExists , atLeastOneMoveExists and tilt.