summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-24 00:37:26 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-24 00:37:26 +0100
commit12c0ebd73cb87e6d244658b5600a20b898b89548 (patch)
tree9c1cff928446adb63610c46f2fae94a95b658074
parent3bca66e0c23b5b75e643398492bd9a09bdda2f03 (diff)
download300-earth-and-water-12c0ebd73cb87e6d244658b5600a20b898b89548.tar.gz
Automatic resign menu.
-rw-r--r--play.html2
-rw-r--r--rules.js16
2 files changed, 0 insertions, 18 deletions
diff --git a/play.html b/play.html
index 35e6e22..f3008dd 100644
--- a/play.html
+++ b/play.html
@@ -31,8 +31,6 @@
<li><a href="info/notes.html" target="_blank">Notes</a>
<li><a href="info/rules.html" target="_blank">Rules</a>
<li><a href="info/cards.html" target="_blank">Cards</a>
- <li class="resign separator">
- <li class="resign" onclick="confirm_resign()">Resign
</menu>
</details>
</div>
diff --git a/rules.js b/rules.js
index 44bd395..1d5d3e1 100644
--- a/rules.js
+++ b/rules.js
@@ -3452,22 +3452,6 @@ exports.action = function (state, current, action, arg) {
return game;
}
-exports.resign = function (state, current) {
- game = state;
- if (game.state !== 'game_over') {
- log_sep();
- log(current + " resigned.");
- game.active = "None";
- game.state = 'game_over';
- game.victory = current + " resigned.";
- if (current === PERSIA)
- game.result = GREECE;
- else
- game.result = PERSIA;
- }
- return game;
-}
-
exports.view = function(state, current) {
game = state;