From 0b979b1575eab57bfe5f26b1dd34e48004221f58 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Dec 2023 00:38:46 +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 6ed7ac7..5c6a948 100644 --- a/play.html +++ b/play.html @@ -46,8 +46,6 @@
  • Rules
  • Cards
  • Blocks -
  • -
  • Resign diff --git a/rules.js b/rules.js index 392e5e0..656fe0c 100644 --- a/rules.js +++ b/rules.js @@ -3160,19 +3160,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 observer_hand() { let hand = [] hand.length = Math.max(game.e_hand.length, game.s_hand.length) -- cgit v1.2.3