Skip to content

Commit 2f91247

Browse files
improve comments in game manager
1 parent 6cb3d71 commit 2f91247

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/game_manager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ function GameManager(size, InputManager, Actuator, StorageManager) {
1616
// Restart the game
1717
GameManager.prototype.restart = function () {
1818
this.storageManager.clearGameState();
19-
this.actuator.continue();
19+
this.actuator.continue(); // Clear the game won/lost message
2020
this.setup();
2121
};
2222

23-
// Keep playing after winning
23+
// Keep playing after winning (allows going over 2048)
2424
GameManager.prototype.keepPlaying = function () {
2525
this.keepPlaying = true;
26-
this.actuator.continue();
26+
this.actuator.continue(); // Clear the game won/lost message
2727
};
2828

2929
// Return true if the game is lost, or has won and the user hasn't kept playing

0 commit comments

Comments
 (0)