diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-17 15:50:28 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:39 +0100 |
commit | fbafa84adfb0c4b024dd3bd00f026fb4c2457213 (patch) | |
tree | a9ff86a6777b7adf68c7feebd74af9362672f92e | |
parent | d29a6161b735dd7bcf34f6fda61596e6c277dce9 (diff) | |
download | nevsky-fbafa84adfb0c4b024dd3bd00f026fb4c2457213.tar.gz |
Add turn checkpoint marker.
-rw-r--r-- | rules.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |