summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-09-17 19:48:17 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:42:59 +0100
commit80dab0a5e489aed34f1a6078544a76d60e78ab09 (patch)
tree91ae4ae3621b5d88142f6315777023dde71ff27a
parenta8d01e4c6cecaf63519dbea4f5ab789b0674889d (diff)
download300-earth-and-water-80dab0a5e489aed34f1a6078544a76d60e78ab09.tar.gz
300: Fix resign result.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 216d8d9..9d45537 100644
--- a/rules.js
+++ b/rules.js
@@ -3229,7 +3229,7 @@ exports.resign = function (state, current) {
game.active = "None";
game.state = 'game_over';
game.victory = current + " resigned.";
- if (game.current === PERSIA)
+ if (current === PERSIA)
game.result = GREECE;
else
game.result = PERSIA;