diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-24 00:40:25 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-24 00:40:25 +0100 |
commit | 8dc7e3a580cf2e2d87794060f38b911753f8541e (patch) | |
tree | 40fdb2670ce402d4938ca07ffafd186bff3b4733 | |
parent | f9786236e73e78d257d4121a9c0e24682c3c8e14 (diff) | |
download | red-flag-over-paris-8dc7e3a580cf2e2d87794060f38b911753f8541e.tar.gz |
Automatic resign menu.
-rw-r--r-- | play.html | 2 | ||||
-rw-r--r-- | rules.js | 11 |
2 files changed, 0 insertions, 13 deletions
@@ -25,8 +25,6 @@ <li><a href="info/rules.html" target="_blank">Rules</a> <li><a href="info/censorship.html" target="_blank">Reference</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> @@ -3572,17 +3572,6 @@ exports.action = function (state, player, action, arg) { // === GAME OVER === -exports.resign = function (state, player) { - game = state - if (game.state !== "game_over") { - if (player === COMMUNE) - goto_game_over(VERSAILLES, "Commune resigned.") - if (player === VERSAILLES) - goto_game_over(COMMUNE, "Versailles resigned.") - } - return game -} - function goto_game_over(result, victory) { game.state = "game_over" game.active = "None" |