From ea723bdaff2ac5ff47b0e303923a3499f10458a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sun, 31 Dec 2023 20:23:00 +0100 Subject: [PATCH] fix: count ones as bdr only if the second copy is lost --- src/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats.py b/src/stats.py index 724cd9b..d73d8ce 100644 --- a/src/stats.py +++ b/src/stats.py @@ -52,7 +52,7 @@ def analyze_replay(instance: hanab_game.HanabiInstance, actions: List[hanab_game if card == game.deck[-1]: outcomes.add(GameOutcome.bottom_deck) else: - if game.deck[game.progress:].count(card) == 2: + if game.deck[game.progress:].count(card) == 1: bdrs.append((card, game.draw_pile_size)) if card == game.deck[-1]: outcomes.add(GameOutcome.bottom_deck)