summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
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