From 12c0ebd73cb87e6d244658b5600a20b898b89548 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Dec 2023 00:37:26 +0100 Subject: Automatic resign menu. --- play.html | 2 -- rules.js | 16 ---------------- 2 files changed, 18 deletions(-) diff --git a/play.html b/play.html index 35e6e22..f3008dd 100644 --- a/play.html +++ b/play.html @@ -31,8 +31,6 @@
  • Notes
  • Rules
  • Cards -
  • -
  • Resign diff --git a/rules.js b/rules.js index 44bd395..1d5d3e1 100644 --- a/rules.js +++ b/rules.js @@ -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; -- cgit v1.2.3