From 9b19d5d60468fbcffddb498b15466d39727ab781 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Dec 2023 00:40:44 +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 f9a35ed..9307e54 100644 --- a/play.html +++ b/play.html @@ -46,8 +46,6 @@
  • Tripolitan Cards
  • United States Cards -
  • -
  • Resign diff --git a/rules.js b/rules.js index a3946a8..bfd8226 100644 --- a/rules.js +++ b/rules.js @@ -2968,17 +2968,6 @@ exports.action = function (state, current, action, arg) { return game; } -exports.resign = function (state, current) { - game = state; - if (game.state !== 'game_over') { - if (current === US) - goto_game_over(TR, "United States resigned."); - if (current === TR) - goto_game_over(US, "Tripolitania resigned."); - } - return game; -} - exports.view = function(state, current) { game = state; -- cgit v1.2.3