From fbafa84adfb0c4b024dd3bd00f026fb4c2457213 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 17 Jan 2023 15:50:28 +0100 Subject: Add turn checkpoint marker. --- rules.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rules.js') 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 -- cgit v1.2.3