diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-24 00:37:26 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-24 00:37:26 +0100 |
commit | 12c0ebd73cb87e6d244658b5600a20b898b89548 (patch) | |
tree | 9c1cff928446adb63610c46f2fae94a95b658074 | |
parent | 3bca66e0c23b5b75e643398492bd9a09bdda2f03 (diff) | |
download | 300-earth-and-water-12c0ebd73cb87e6d244658b5600a20b898b89548.tar.gz |
Automatic resign menu.
-rw-r--r-- | play.html | 2 | ||||
-rw-r--r-- | rules.js | 16 |
2 files changed, 0 insertions, 18 deletions
@@ -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> @@ -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; |