From c83ee7db9b71fbc5e8ec55b4d75c7faecdd71c93 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 11 Dec 2023 23:14:35 +0100 Subject: fix automatic state selection (account for opponent cubes too!) --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.js b/rules.js index f08c0fa..9c9c0d0 100644 --- a/rules.js +++ b/rules.js @@ -1329,7 +1329,7 @@ function auto_select_state() { let most = -1, where = -1 for (let s of ANYWHERE) { if (!(is_green_check(s) || is_red_x(s))) { - let n = player_cubes(s) + let n = player_cubes(s) - opponent_cubes(s) if (n > most) { most = n where = s -- cgit v1.2.3