Just as we need to report wins, we must also report loses. Let's do it in a separate method: void
gameOver(), by analogy with the win() method. If the game is lost, you also need to set the isGameStopped
flag equal to true.
At the beginning of the onKeyPress(Key) method, check whether a move is po
2048 (Part 15/18)
- 3
Locked
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet