diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-24 00:39:12 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-24 00:39:12 +0100 |
commit | 3d95fe0862e2e9eb622c78bf93506904407435b5 (patch) | |
tree | 2ec97249989a3351927ed51c1c55dd979d00b6f5 | |
parent | db5719847c9397bc96081ec805354a3dca61a1dd (diff) | |
download | nevsky-3d95fe0862e2e9eb622c78bf93506904407435b5.tar.gz |
Automatic resign menu.
-rw-r--r-- | play.html | 2 | ||||
-rw-r--r-- | rules.js | 13 |
2 files changed, 0 insertions, 15 deletions
@@ -26,8 +26,6 @@ <li><a target="_blank" href="/nevsky/info/pac.html">Reference Sheets</a> <li><a target="_blank" href="/nevsky/info/cards.html">Arts of War</a> <li><a target="_blank" href="/nevsky/info/lords.html">Lord Mats</a> - <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> @@ -11026,19 +11026,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() { |