summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.html2
-rw-r--r--rules.js17
2 files changed, 0 insertions, 19 deletions
diff --git a/play.html b/play.html
index 617a034..d383548 100644
--- a/play.html
+++ b/play.html
@@ -30,8 +30,6 @@
<li class="debug" onclick="send_restore()">&#x1F41E; Restore
<li class="debug" onclick="send_restart()">&#x26a0; Restart
<li class="debug separator">
- <li class="resign separator">
- <li class="resign" onclick="confirm_resign()">Resign
</menu>
</details>
<button onclick="toggle_pieces()"><img src="/images/earth-africa-europe.svg"></button>
diff --git a/rules.js b/rules.js
index a496862..2ee425c 100644
--- a/rules.js
+++ b/rules.js
@@ -10069,19 +10069,6 @@ states.game_over = {
},
}
-exports.resign = function (state, current) {
- load_state(state)
- if (game.state !== "game_over") {
- for (let opponent of exports.roles) {
- if (opponent !== current) {
- goto_game_over(opponent, current + " resigned.")
- break
- }
- }
- }
- return game
-}
-
// === UNCOMMON TEMPLATE ===
function log_br() {
@@ -10364,10 +10351,6 @@ 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