提交 3b86903e 编写于 作者: J janschoenherr

code cleanup

上级 542208d9
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册