diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-05-09 22:38:57 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:31:29 +0100 |
commit | 651550c37e178869ed3296a6ab893f2d1cb6818e (patch) | |
tree | 2075c5e138008359fcf13167b70b5f851f71186b | |
parent | bbbc61f7428723b7d4000600a55a1fbf9557d01d (diff) | |
download | pax-pamir-651550c37e178869ed3296a6ab893f2d1cb6818e.tar.gz |
Add checkpoints.
-rw-r--r-- | rules.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |