From 8dc7e3a580cf2e2d87794060f38b911753f8541e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Dec 2023 00:40:25 +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 51a12ee..190f175 100644 --- a/play.html +++ b/play.html @@ -25,8 +25,6 @@
  • Rules
  • Reference
  • Cards -
  • -
  • Resign diff --git a/rules.js b/rules.js index 6cb813a..6e88d90 100644 --- a/rules.js +++ b/rules.js @@ -3572,17 +3572,6 @@ exports.action = function (state, player, action, arg) { // === GAME OVER === -exports.resign = function (state, player) { - game = state - if (game.state !== "game_over") { - if (player === COMMUNE) - goto_game_over(VERSAILLES, "Commune resigned.") - if (player === VERSAILLES) - goto_game_over(COMMUNE, "Versailles resigned.") - } - return game -} - function goto_game_over(result, victory) { game.state = "game_over" game.active = "None" -- cgit v1.2.3