From c8a4d0daa43e26b492b3d1e1bae47da1bf6655b4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Dec 2023 00:38:52 +0100 Subject: Automatic resign menu. --- play.html | 2 -- rules.js | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/play.html b/play.html index d2e7951..bbb6864 100644 --- a/play.html +++ b/play.html @@ -31,8 +31,6 @@
  • Rules
  • Cards
  • Blocks -
  • -
  • Resign diff --git a/rules.js b/rules.js index a44fd4f..8eebf44 100644 --- a/rules.js +++ b/rules.js @@ -2757,20 +2757,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.") - count_vp() - game.active = null - game.state = 'game_over' - game.result = enemy(current) - game.victory = current + " resigned." - } - return game -} - function make_battle_view() { let attacker = get_attacker(game.where) let bv = { -- cgit v1.2.3