From 78c27d6d0bc88dffb3070e2c77f6c4f2757a04e5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 23 Aug 2024 23:46:23 +0200 Subject: Arnold is a general! --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index b7a39b7..6436f2e 100644 --- a/rules.js +++ b/rules.js @@ -2350,7 +2350,7 @@ function can_intercept_to(to) { let g = find_american_or_french_general(space) if (is_quebec_falmouth_path(to, space) && g !== ARNOLD) continue - if (g && !has_general_moved(g)) + if (g !== NOBODY && !has_general_moved(g)) return true } } @@ -2363,7 +2363,7 @@ function gen_intercept() { let g = find_american_or_french_general(space) if (is_quebec_falmouth_path(game.move.to, space) && g !== ARNOLD) continue - if (g && !has_general_moved(g)) + if (g !== NOBODY && !has_general_moved(g)) gen_action_general(g) } } -- cgit v1.2.3