Spaces:
Running
Running
Commit ·
7076f16
1
Parent(s): af93829
Fix following Rifaki's hack
Browse files
codenames/challenge_runner.py
CHANGED
|
@@ -56,7 +56,7 @@ def play_challenge(
|
|
| 56 |
|
| 57 |
# Guesser phase with student code
|
| 58 |
while not game.won and not game.lost and game.clue_word is not None:
|
| 59 |
-
unrevealed =
|
| 60 |
try:
|
| 61 |
guess_word = guesser_fn(game.clue_word, unrevealed, game.clue_number)
|
| 62 |
except Exception as e:
|
|
|
|
| 56 |
|
| 57 |
# Guesser phase with student code
|
| 58 |
while not game.won and not game.lost and game.clue_word is not None:
|
| 59 |
+
unrevealed = sorted(c.word for c in game.board.cards if not c.revealed)
|
| 60 |
try:
|
| 61 |
guess_word = guesser_fn(game.clue_word, unrevealed, game.clue_number)
|
| 62 |
except Exception as e:
|