+1
-5
@@ -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
|
// Return true if the game is lost, or has won and the user hasn't kept playing
|
||||||
GameManager.prototype.isGameTerminated = function () {
|
GameManager.prototype.isGameTerminated = function () {
|
||||||
if (this.over || (this.won && !this.keepPlaying)) {
|
return this.over || (this.won && !this.keepPlaying);
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Set up the game
|
// Set up the game
|
||||||
|
|||||||
Reference in New Issue
Block a user