From 0344b5622ab1b426e8ba5e783879732c80ad61af Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Dec 2023 00:40:31 +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 522d9bf..10eccf7 100644 --- a/play.html +++ b/play.html @@ -25,8 +25,6 @@
  • Rules
  • Cards
  • Blocks -
  • -
  • Resign diff --git a/rules.js b/rules.js index 9bca996..e4a76a6 100644 --- a/rules.js +++ b/rules.js @@ -3510,19 +3510,6 @@ exports.action = function (state, current, action, arg) { return game } -exports.resign = function (state, current) { - game = state - if (game.state !== 'game_over') { - logbr() - 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.l_hand.length, game.y_hand.length) -- cgit v1.2.3