summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-06-05 01:27:28 +0200
committerTor Andersson <tor@ccxvii.net>2024-06-05 01:27:28 +0200
commit61698a173a67c5dc426b017fbd7dafb5dc91fd9e (patch)
tree90b2b208b38691e4a0b193f016ae0c2e9fd2362e
parent17f75a93e2e0ac37f8e73de5f40c7610afe5037f (diff)
downloadfriedrich-61698a173a67c5dc426b017fbd7dafb5dc91fd9e.tar.gz
don't log no-op moves
-rw-r--r--rules.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 472670d..0c593e9 100644
--- a/rules.js
+++ b/rules.js
@@ -373,7 +373,8 @@ function log_selected_move_path() {
if (is_important_move(game.move_path[i]) || i === game.move_path.length-1)
log(">to S" + game.move_path[i])
} else {
- log("@" + game.selected.join(",") + ";" + game.move_path.join(","))
+ if (game.move_path.length > 1)
+ log("@" + game.selected.join(",") + ";" + game.move_path.join(","))
}
}