From d282ff258ccce2afc54ae9ed2ef3624a0952b045 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 29 Nov 2024 17:35:25 +0000 Subject: Fix fuzzer with TST Award 3 --- rules.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index a878ffd..b372d90 100644 --- a/rules.js +++ b/rules.js @@ -3404,7 +3404,6 @@ function event_is_playable(card) { } // Then check normally else if (game.playable_cards.includes(card)) { - console.log('in playable cards', game.playable_cards) return true } else if (cards[card].playable) { return true @@ -4091,7 +4090,7 @@ function check_systematization() { if (game.systematization > 0) { game.valid_spaces = game.valid_spaces.filter(n => n !== game.systematization) } -} +} function this_card() { return game.vm_event > 0 ? game.vm_event : game.played_card @@ -7948,10 +7947,14 @@ states.vm_tst_3 = { gen_action_card(card) } } + console.log('game.valid_cards', game.valid_cards) }, card(card) { push_undo() discard(card) + console.log('card', card,'game.valid_cards', game.valid_cards) + game.valid_cards.splice(game.valid_cards.indexOf(card), 1) + console.log('game.valid_cards', game.valid_cards) game.temp ++ if (game.temp === 2) { game.valid_cards = [] -- cgit v1.2.3