Skip to content

Commit

Permalink
🤏🏻 Rewording
Browse files Browse the repository at this point in the history
  • Loading branch information
asaf-kali committed Jan 4, 2025
1 parent adffb71 commit 22debad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solvers/gpt/gpt_spymaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ def give_clue(self, game_state: SpymasterState) -> Clue:
def _verify_clue(self, clue: Clue, game_state: SpymasterState):
good_clue = True
for word in clue.for_words:
if not self._card_valid_for_clueing(clue=clue, game_state=game_state, word=word):
if not self._card_valid_for_clue(clue=clue, game_state=game_state, word=word):
good_clue = False
if good_clue:
log.info(f"Clue {clue} is valid")

def _card_valid_for_clueing(self, clue: Clue, game_state: SpymasterState, word: str) -> bool:
def _card_valid_for_clue(self, clue: Clue, game_state: SpymasterState, word: str) -> bool:
try:
card = game_state.board[word]
except KeyError:
Expand Down

0 comments on commit 22debad

Please sign in to comment.