From 247576da0e0d48c571a243a7fbc6c5698ca832d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Mon, 18 Mar 2024 14:02:48 +0100 Subject: [PATCH] adjust seed solving code --- src/hanabi/live/instance_finder.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hanabi/live/instance_finder.py b/src/hanabi/live/instance_finder.py index 245232f..d9407b2 100644 --- a/src/hanabi/live/instance_finder.py +++ b/src/hanabi/live/instance_finder.py @@ -93,9 +93,8 @@ mutex = threading.Lock() def solve_instance(instance: hanab_game.HanabiInstance): # first, sanity check on running out of pace result = deck_analyzer.analyze(instance) - if result is not None: - assert type(result) == deck_analyzer.InfeasibilityReason - logger.debug("found infeasible deck") + if len(result) != 0: + logger.info("found infeasible deck by foreward analysis") return False, None, None for num_remaining_cards in [0, 20]: # logger.info("trying with {} remaining cards".format(num_remaining_cards))