From 83c39615adacfaaf740fecad916ad9576b4e6e9d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Dec 2023 00:42:03 +0100 Subject: Automatic resign menu. --- rules.js | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 15c9f30..51c71e4 100644 --- a/rules.js +++ b/rules.js @@ -2839,18 +2839,6 @@ exports.action = function (state, player, action, arg) { return game } -exports.resign = function (state, player) { - zoc_valid = false - game = state - if (game.state !== 'game_over') { - if (player === P1) - goto_game_over(P2, P1 + " resigned.") - if (player === P2) - goto_game_over(P1, P2 + " resigned.") - } - return game -} - function goto_game_over(result, victory) { game.state = "game_over" game.active = "None" -- cgit v1.2.3