Eric Botti
commited on
Commit
·
3ac8e2a
1
Parent(s):
380be21
added streamlit interface
Browse files- src/game.py +3 -4
src/game.py
CHANGED
@@ -101,13 +101,13 @@ class Game:
|
|
101 |
if player != recipient:
|
102 |
player.prompt_queue.append(message)
|
103 |
if player.controller_type == "human":
|
104 |
-
|
105 |
if self.verbose:
|
106 |
-
|
107 |
else:
|
108 |
recipient.prompt_queue.append(message)
|
109 |
if recipient.controller_type == "human":
|
110 |
-
|
111 |
|
112 |
async def instructional_message(self, message: str, player: Player, output_format: Type[BaseModel]):
|
113 |
"""Sends a message to a specific player and gets their response."""
|
@@ -135,7 +135,6 @@ class Game:
|
|
135 |
|
136 |
async def start(self):
|
137 |
"""Sets up the game. This includes assigning roles and gathering player names."""
|
138 |
-
self.game_message(("Welcome to Chameleon! This is a social deduction game powered by LLMs."))
|
139 |
self.game_message(fetch_prompt("game_rules"))
|
140 |
|
141 |
await self.run_round()
|
|
|
101 |
if player != recipient:
|
102 |
player.prompt_queue.append(message)
|
103 |
if player.controller_type == "human":
|
104 |
+
self.human_message(message)
|
105 |
if self.verbose:
|
106 |
+
self.human_message(message)
|
107 |
else:
|
108 |
recipient.prompt_queue.append(message)
|
109 |
if recipient.controller_type == "human":
|
110 |
+
self.human_message(message)
|
111 |
|
112 |
async def instructional_message(self, message: str, player: Player, output_format: Type[BaseModel]):
|
113 |
"""Sends a message to a specific player and gets their response."""
|
|
|
135 |
|
136 |
async def start(self):
|
137 |
"""Sets up the game. This includes assigning roles and gathering player names."""
|
|
|
138 |
self.game_message(fetch_prompt("game_rules"))
|
139 |
|
140 |
await self.run_round()
|