diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-24 00:42:03 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-24 00:42:03 +0100 |
commit | 83c39615adacfaaf740fecad916ad9576b4e6e9d (patch) | |
tree | 057431131c730fb948aef61b4ba877bee99d02b6 /rules.js | |
parent | 23f57c9dab0503ea538c3da97498920ada408978 (diff) | |
download | waterloo-campaign-1815-83c39615adacfaaf740fecad916ad9576b4e6e9d.tar.gz |
Automatic resign menu.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -2839,18 +2839,6 @@ exports.action = function (state, player, action, arg) { return game } -exports.resign = function (state, player) { - zoc_valid = false - game = state - if (game.state !== 'game_over') { - if (player === P1) - goto_game_over(P2, P1 + " resigned.") - if (player === P2) - goto_game_over(P1, P2 + " resigned.") - } - return game -} - function goto_game_over(result, victory) { game.state = "game_over" game.active = "None" |