summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-08-16 02:22:13 +0200
committerTor Andersson <tor@ccxvii.net>2023-08-16 02:22:13 +0200
commit573230ef924331c87eb5111b7ad7af799f1c64ee (patch)
tree0b4632bb41ff7807efb107388de187f2f60e7003
parenta6020e102f5a5a431abd874a7f76707ba20affb1 (diff)
downloadfield-cloth-gold-573230ef924331c87eb5111b7ad7af799f1c64ee.tar.gz
Fix victory check.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 96a9bad..9efcc19 100644
--- a/rules.js
+++ b/rules.js
@@ -1141,7 +1141,7 @@ function goto_victory() {
if (victory_check(game.red_score, game.blue_score))
if (victory_check(count_tiles(game.red_court, TILE_WHITE), count_tiles(game.blue_court, TILE_WHITE)))
- if (victory_check(game.red_court.length), game.blue_court.length)
+ if (victory_check(game.red_court.length, game.blue_court.length))
goto_game_over("Shared", "The two majesties do share victory!")
}