From 651550c37e178869ed3296a6ab893f2d1cb6818e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 9 May 2022 22:38:57 +0200 Subject: Add checkpoints. --- rules.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rules.js b/rules.js index d98f4e1..578273b 100644 --- a/rules.js +++ b/rules.js @@ -2867,6 +2867,8 @@ exports.resign = function (state, current) { return save_game(); } +exports.is_checkpoint = (a, b) => a.phasing !== b.phasing; + exports.view = function(state, current) { current = player_index[current]; load_game(state); -- cgit v1.2.3