From 4330e22e85ab58b18fd28f48180ec27c6db2a915 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Dec 2023 00:38:10 +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 225dded..c64f390 100644 --- a/play.html +++ b/play.html @@ -28,8 +28,6 @@
  • Rules
  • Cards
  • Blocks -
  • -
  • Resign diff --git a/rules.js b/rules.js index 1ebd165..d873d23 100644 --- a/rules.js +++ b/rules.js @@ -3894,19 +3894,6 @@ exports.action = function (state, current, action, arg) { return game } -exports.resign = function (state, current) { - game = state - if (game.state !== 'game_over') { - log("") - log(current + " resigned.") - game.active = "None" - game.state = 'game_over' - game.victory = current + " resigned." - game.result = enemy(current) - } - return game -} - function make_siege_view() { let list = {} for (let town = first_town; town <= last_town; ++town) -- cgit v1.2.3