diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-24 00:40:31 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-24 00:40:31 +0100 |
commit | 0344b5622ab1b426e8ba5e783879732c80ad61af (patch) | |
tree | aad24b28f90849fee2b3d2119ed28562151394b4 | |
parent | c7054d47ad0c45ba2677cd1842504421f4c2515d (diff) | |
download | richard-iii-0344b5622ab1b426e8ba5e783879732c80ad61af.tar.gz |
Automatic resign menu.
-rw-r--r-- | play.html | 2 | ||||
-rw-r--r-- | rules.js | 13 |
2 files changed, 0 insertions, 15 deletions
@@ -25,8 +25,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> @@ -3510,19 +3510,6 @@ exports.action = function (state, current, action, arg) { return game } -exports.resign = function (state, current) { - game = state - if (game.state !== 'game_over') { - logbr() - log(current + " resigned.") - game.active = "None" - game.state = 'game_over' - game.victory = current + " resigned." - game.result = ENEMY[current] - } - return game -} - function observer_hand() { let hand = [] hand.length = Math.max(game.l_hand.length, game.y_hand.length) |