From 1ec869b34cd284460c77c57897bc70a08be9eba7 Mon Sep 17 00:00:00 2001 From: Asaf Kali Date: Thu, 28 Sep 2023 23:53:34 +0300 Subject: [PATCH] Fix. --- pyproject.toml | 2 +- solvers/gpt/gpt_hinter.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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