diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-06-05 01:27:28 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-06-05 01:27:28 +0200 |
commit | 61698a173a67c5dc426b017fbd7dafb5dc91fd9e (patch) | |
tree | 90b2b208b38691e4a0b193f016ae0c2e9fd2362e | |
parent | 17f75a93e2e0ac37f8e73de5f40c7610afe5037f (diff) | |
download | friedrich-61698a173a67c5dc426b017fbd7dafb5dc91fd9e.tar.gz |
don't log no-op moves
-rw-r--r-- | rules.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(",")) } } |