Eric Botti
commited on
Commit
·
1d85643
1
Parent(s):
790f101
fixed chameleon guess
Browse files- src/game.py +2 -2
src/game.py
CHANGED
|
@@ -109,7 +109,7 @@ class Game:
|
|
| 109 |
|
| 110 |
response = await self.players[self.chameleon_index].respond_to(prompt, ChameleonGuessDecisionModel)
|
| 111 |
|
| 112 |
-
if response.decision == "guess":
|
| 113 |
chameleon_will_guess = True
|
| 114 |
else:
|
| 115 |
chameleon_will_guess = False
|
|
@@ -121,7 +121,7 @@ class Game:
|
|
| 121 |
|
| 122 |
response = await self.players[self.chameleon_index].respond_to(prompt, ChameleonGuessAnimalModel)
|
| 123 |
|
| 124 |
-
if response.animal == herd_animal:
|
| 125 |
winner = "chameleon"
|
| 126 |
else:
|
| 127 |
winner = "herd"
|
|
|
|
| 109 |
|
| 110 |
response = await self.players[self.chameleon_index].respond_to(prompt, ChameleonGuessDecisionModel)
|
| 111 |
|
| 112 |
+
if response.decision.lower() == "guess":
|
| 113 |
chameleon_will_guess = True
|
| 114 |
else:
|
| 115 |
chameleon_will_guess = False
|
|
|
|
| 121 |
|
| 122 |
response = await self.players[self.chameleon_index].respond_to(prompt, ChameleonGuessAnimalModel)
|
| 123 |
|
| 124 |
+
if response.animal.lower() == herd_animal.lower():
|
| 125 |
winner = "chameleon"
|
| 126 |
else:
|
| 127 |
winner = "herd"
|