From 7f0c3fbd196dad80699aa74254fe37a3b72de32d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Sep 2023 23:49:28 +0200 Subject: Fix ZOC cache bug! --- rules.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rules.js b/rules.js index e8c98c7..c12c816 100644 --- a/rules.js +++ b/rules.js @@ -2491,6 +2491,7 @@ function gen_action_stop_hex(hex) { } exports.view = function (state, player) { + zoc_valid = false game = state view = { @@ -2547,6 +2548,7 @@ exports.action = function (state, player, action, arg) { } exports.resign = function (state, player) { + zoc_valid = false game = state if (game.state !== 'game_over') { if (player === P1) -- cgit v1.2.3