From 444d399b00583ff3cb70b423308d6fc0431c8621 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Dec 2023 00:41:49 +0100 Subject: Automatic resign menu. --- play.html | 2 -- rules.js | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/play.html b/play.html index 1e5d0f2..416f0da 100644 --- a/play.html +++ b/play.html @@ -42,8 +42,6 @@
  • Rules
  • History
  • Cards -
  • -
  • Resign diff --git a/rules.js b/rules.js index 6017e40..3239bb7 100644 --- a/rules.js +++ b/rules.js @@ -560,17 +560,6 @@ exports.action = function (state, player, action, arg) { return game } -exports.resign = function (state, player) { - game = state - if (game.state !== "game_over") { - if (player === SUF) - goto_game_over(OPP, "Suffragist resigned.") - if (player === OPP) - goto_game_over(SUF, "Opposition resigned.") - } - return game -} - function goto_game_over(result, victory) { game.state = "game_over" game.active = "None" -- cgit v1.2.3