summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-24 00:40:44 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-27 15:11:53 +0100
commit9b19d5d60468fbcffddb498b15466d39727ab781 (patch)
tree4166c83876bd533c9918bcb42a3879d46f7c744d
parentc628ba705d0776ba34df7333cca3a6c82c7030e7 (diff)
downloadshores-of-tripoli-master.tar.gz
Automatic resign menu.HEADmaster
-rw-r--r--play.html2
-rw-r--r--rules.js11
2 files changed, 0 insertions, 13 deletions
diff --git a/play.html b/play.html
index f9a35ed..9307e54 100644
--- a/play.html
+++ b/play.html
@@ -46,8 +46,6 @@
<li class="separator">
<li><a href="info/tr_cards.html" target="_blank">Tripolitan Cards</a>
<li><a href="info/us_cards.html" target="_blank">United States 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 a3946a8..bfd8226 100644
--- a/rules.js
+++ b/rules.js
@@ -2968,17 +2968,6 @@ exports.action = function (state, current, action, arg) {
return game;
}
-exports.resign = function (state, current) {
- game = state;
- if (game.state !== 'game_over') {
- if (current === US)
- goto_game_over(TR, "United States resigned.");
- if (current === TR)
- goto_game_over(US, "Tripolitania resigned.");
- }
- return game;
-}
-
exports.view = function(state, current) {
game = state;