diff --git a/pyproject.toml b/pyproject.toml index b1052dd..f0c48f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] readme = "README.md" diff --git a/solvers/gpt/gpt_hinter.py b/solvers/gpt/gpt_hinter.py index 53d2968..8430e35 100644 --- a/solvers/gpt/gpt_hinter.py +++ b/solvers/gpt/gpt_hinter.py @@ -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