From 1e96f59510f5b54fc98e4742c2f8d7d214e518be Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Dec 2023 00:38:17 +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 3efa3e0..e7785b4 100644 --- a/play.html +++ b/play.html @@ -239,8 +239,6 @@ body.Observer #hand { display: none }
  • Rules
  • Sort tiles -
  • -
  • Resign diff --git a/rules.js b/rules.js index 1fc7734..7d45ace 100644 --- a/rules.js +++ b/rules.js @@ -189,17 +189,6 @@ exports.view = function (state, player) { return view } -exports.resign = function (state, player) { - game = state - if (game.state !== 'game_over') { - if (player === RED) - goto_game_over(BLUE, RED + " resigned.") - if (player === BLUE) - goto_game_over(RED, BLUE + " resigned.") - } - return game -} - function goto_game_over(result, victory) { game.state = "game_over" game.active = "None" -- cgit v1.2.3