fix: count ones as bdr only if the second copy is lost
This commit is contained in:
parent
542d40282a
commit
ea723bdaff
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ def analyze_replay(instance: hanab_game.HanabiInstance, actions: List[hanab_game
|
||||||
if card == game.deck[-1]:
|
if card == game.deck[-1]:
|
||||||
outcomes.add(GameOutcome.bottom_deck)
|
outcomes.add(GameOutcome.bottom_deck)
|
||||||
else:
|
else:
|
||||||
if game.deck[game.progress:].count(card) == 2:
|
if game.deck[game.progress:].count(card) == 1:
|
||||||
bdrs.append((card, game.draw_pile_size))
|
bdrs.append((card, game.draw_pile_size))
|
||||||
if card == game.deck[-1]:
|
if card == game.deck[-1]:
|
||||||
outcomes.add(GameOutcome.bottom_deck)
|
outcomes.add(GameOutcome.bottom_deck)
|
||||||
|
|
Loading…
Reference in a new issue