diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-24 00:41:49 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-27 15:03:57 +0100 |
commit | 444d399b00583ff3cb70b423308d6fc0431c8621 (patch) | |
tree | bff9ccb28f7ea22999c889cb56fbdf75b244586b | |
parent | 8d15b960ff46f11c9c2882771d8879092f826148 (diff) | |
download | votes-for-women-444d399b00583ff3cb70b423308d6fc0431c8621.tar.gz |
Automatic resign menu.
-rw-r--r-- | play.html | 2 | ||||
-rw-r--r-- | rules.js | 11 |
2 files changed, 0 insertions, 13 deletions
@@ -42,8 +42,6 @@ <li><a href="info/rules.html" target="_blank">Rules</a> <li><a href="info/history.html" target="_blank">History</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> @@ -560,17 +560,6 @@ exports.action = function (state, player, action, arg) { return game } -exports.resign = function (state, player) { - game = state - if (game.state !== "game_over") { - if (player === SUF) - goto_game_over(OPP, "Suffragist resigned.") - if (player === OPP) - goto_game_over(SUF, "Opposition resigned.") - } - return game -} - function goto_game_over(result, victory) { game.state = "game_over" game.active = "None" |