summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index c7438f1..15c9f30 100644
--- a/rules.js
+++ b/rules.js
@@ -1318,11 +1318,15 @@ function pass_movement() {
if (game.turn <= 2 && game.active === P1) {
game.remain = game.french_moves
+ if (game.remain === 0)
+ end_movement()
return
}
if (game.turn === 2 && game.active === P2) {
game.remain = game.prussian_moves
+ if (game.remain === 0)
+ end_movement()
return
}