diff options
-rw-r--r-- | play.html | 2 | ||||
-rw-r--r-- | rules.js | 12 |
2 files changed, 0 insertions, 14 deletions
@@ -22,8 +22,6 @@ <menu> <li><a href="info/rules.html" target="_blank">Rules</a> <li><a href="info/charts.html" target="_blank">Charts</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> @@ -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" |