diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-24 00:38:10 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-24 00:38:10 +0100 |
commit | 4330e22e85ab58b18fd28f48180ec27c6db2a915 (patch) | |
tree | e0c58f592d239dd1840e062a37a5a6a65ba64411 | |
parent | b9e8117d1e54f6d9ee9b2d1f3d426a8ccf6431d6 (diff) | |
download | crusader-rex-4330e22e85ab58b18fd28f48180ec27c6db2a915.tar.gz |
Automatic resign menu.
-rw-r--r-- | play.html | 2 | ||||
-rw-r--r-- | rules.js | 13 |
2 files changed, 0 insertions, 15 deletions
@@ -28,8 +28,6 @@ <li><a href="info/rules.html" target="_blank">Rules</a> <li><a href="info/cards.html" target="_blank">Cards</a> <li><a href="info/blocks.html" target="_blank">Blocks</a> - <li class="resign separator"> - <li class="resign" onclick="confirm_resign()">Resign </menu> </details> <button onclick="toggle_blocks()"><img src="/images/earth-africa-europe.svg"></button> @@ -3894,19 +3894,6 @@ exports.action = function (state, current, action, arg) { return game } -exports.resign = function (state, current) { - game = state - if (game.state !== 'game_over') { - log("") - log(current + " resigned.") - game.active = "None" - game.state = 'game_over' - game.victory = current + " resigned." - game.result = enemy(current) - } - return game -} - function make_siege_view() { let list = {} for (let town = first_town; town <= last_town; ++town) |