mirror of
https://github.com/danog/2048.git
synced 2024-11-26 19:34:44 +01:00
code cleanup
This commit is contained in:
parent
542208d94a
commit
3b86903e65
@ -28,11 +28,7 @@ GameManager.prototype.keepPlaying = function () {
|
||||
|
||||
// Return true if the game is lost, or has won and the user hasn't kept playing
|
||||
GameManager.prototype.isGameTerminated = function () {
|
||||
if (this.over || (this.won && !this.keepPlaying)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return this.over || (this.won && !this.keepPlaying);
|
||||
};
|
||||
|
||||
// Set up the game
|
||||
|
Loading…
Reference in New Issue
Block a user