diff options
-rw-r--r-- | play.html | 2 | ||||
-rw-r--r-- | rules.js | 13 |
2 files changed, 0 insertions, 15 deletions
@@ -23,8 +23,6 @@ <menu> <li><a href="info/rules.html" target="_blank">Rules</a> <li><a href="info/units.html" target="_blank">Units</a> - <li class="resign separator"> - <li class="resign" onclick="confirm_resign()">Resign </menu> </details> <button onclick="toggle_supply()"><img src="/images/oil-drum.svg"></button> @@ -7692,19 +7692,6 @@ states.game_over = { } } -exports.resign = function (state, current) { - load_state(state) - if (game.state !== 'game_over') { - for (let opponent of exports.roles) { - if (opponent !== current) { - goto_game_over(opponent, current + " resigned.") - break - } - } - } - return game -} - exports.action = function (state, current, action, arg) { timeout = Date.now() + TIMEOUT // don't think too long! load_state(state) |