diff options
-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; |