From 165421013f25743df1b8ac52a8ca2c5c668fc870 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Dec 2023 00:40:36 +0100 Subject: Automatic resign menu. --- play.html | 2 -- rules.js | 13 ------------- 2 files changed, 15 deletions(-) diff --git a/play.html b/play.html index f33daa9..1f0753f 100644 --- a/play.html +++ b/play.html @@ -23,8 +23,6 @@
  • Rules
  • Units -
  • -
  • Resign
  • diff --git a/rules.js b/rules.js index 308bd53..d6efbf3 100644 --- a/rules.js +++ b/rules.js @@ -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) -- cgit v1.2.3