From 037b1568468d5300af879c7b311b255c97045394 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 22 May 2022 14:47:20 +0200 Subject: Log who resigned. --- rules.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rules.js b/rules.js index b4e9be7..0095360 100644 --- a/rules.js +++ b/rules.js @@ -3065,7 +3065,10 @@ exports.action = function (state, current, action, arg) { exports.resign = function (state, current) { load_game(state); + logbr(); + log(`${current} resigned.`); goto_game_over(); + game.victory = `${current} resigned.`; return save_game(); } -- cgit v1.2.3