summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-17 15:50:28 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commitfbafa84adfb0c4b024dd3bd00f026fb4c2457213 (patch)
treea9ff86a6777b7adf68c7feebd74af9362672f92e
parentd29a6161b735dd7bcf34f6fda61596e6c277dce9 (diff)
downloadnevsky-fbafa84adfb0c4b024dd3bd00f026fb4c2457213.tar.gz
Add turn checkpoint marker.
-rw-r--r--rules.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 4f502de..af57c35 100644
--- a/rules.js
+++ b/rules.js
@@ -10083,6 +10083,10 @@ exports.action = function (state, current, action, arg) {
return game
}
+exports.is_checkpoint = function (a, b) {
+ return a.turn !== b.turn
+}
+
// === COMMON TEMPLATE ===
// Packed array of small numbers in one word