Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
asaf-kali committed Sep 28, 2023
1 parent 5620b4a commit 1ec869b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[tool.poetry]
name = "codenames-solvers"
version = "1.4.7"
version = "1.4.8"
description = "Solvers implementation for Codenames board game in python."
authors = ["Asaf Kali <[email protected]>"]
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions solvers/gpt/gpt_hinter.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def _verify_hint(self, hint: Hint, game_state: HinterGameState):
if card.revealed:
log.warning(f"Hint {hint} is referring to a word that is already revealed: {word}")
continue
if card.color == CardColor.BLACK:
log.warning(f"Hint {hint} is referring to the assassin word: {word}")
if card.color != self.team_color.as_card_color:
log.warning(f"Hint {hint} is referring to a word that is not of the team's color: {word}")
continue

@classmethod
Expand Down

0 comments on commit 1ec869b

Please sign in to comment.