Eric Botti
commited on
Commit
·
cc401d9
1
Parent(s):
65b412a
spoiler free verbose messages
Browse files- src/game_chameleon.py +3 -2
src/game_chameleon.py
CHANGED
@@ -130,6 +130,8 @@ class ChameleonGame(Game):
|
|
130 |
|
131 |
# Phase III: The Herd Votes for who they think the Chameleon is
|
132 |
if self.game_state == "herd_vote":
|
|
|
|
|
133 |
for current_player in self.players:
|
134 |
if current_player.role == "herd" and current_player.player_id not in [vote['voter_id'] for vote in
|
135 |
self.herd_vote_tally]:
|
@@ -205,7 +207,7 @@ class ChameleonGame(Game):
|
|
205 |
"""Handles the Chameleon's turn to guess the secret animal."""
|
206 |
if not self.awaiting_input:
|
207 |
self.game_message("All players have spoken. The Chameleon will now guess the secret animal...")
|
208 |
-
self.verbose_message("The Chameleon is
|
209 |
player_responses = self.format_animal_descriptions(exclude=self.chameleon)
|
210 |
self.game_message(format_prompt("chameleon_guess_animal", player_responses=player_responses),
|
211 |
self.chameleon)
|
@@ -225,7 +227,6 @@ class ChameleonGame(Game):
|
|
225 |
def player_turn_herd_vote(self, player: Player):
|
226 |
"""Handles a player's turn to vote for the Chameleon."""
|
227 |
if not self.awaiting_input:
|
228 |
-
self.verbose_message(f"{player.name} is thinking...", recipient=player, exclude=True)
|
229 |
player_responses = self.format_animal_descriptions(exclude=player)
|
230 |
self.game_message(format_prompt("vote", player_responses=player_responses), player)
|
231 |
|
|
|
130 |
|
131 |
# Phase III: The Herd Votes for who they think the Chameleon is
|
132 |
if self.game_state == "herd_vote":
|
133 |
+
if not self.awaiting_input:
|
134 |
+
self.verbose_message("The Herd is voting...")
|
135 |
for current_player in self.players:
|
136 |
if current_player.role == "herd" and current_player.player_id not in [vote['voter_id'] for vote in
|
137 |
self.herd_vote_tally]:
|
|
|
207 |
"""Handles the Chameleon's turn to guess the secret animal."""
|
208 |
if not self.awaiting_input:
|
209 |
self.game_message("All players have spoken. The Chameleon will now guess the secret animal...")
|
210 |
+
self.verbose_message("The Chameleon is guessing...", recipient=chameleon, exclude=True)
|
211 |
player_responses = self.format_animal_descriptions(exclude=self.chameleon)
|
212 |
self.game_message(format_prompt("chameleon_guess_animal", player_responses=player_responses),
|
213 |
self.chameleon)
|
|
|
227 |
def player_turn_herd_vote(self, player: Player):
|
228 |
"""Handles a player's turn to vote for the Chameleon."""
|
229 |
if not self.awaiting_input:
|
|
|
230 |
player_responses = self.format_animal_descriptions(exclude=player)
|
231 |
self.game_message(format_prompt("vote", player_responses=player_responses), player)
|
232 |
|