diff --git a/src/werewolf_game.py b/src/werewolf_game.py index f564f2c..53ccf39 100644 --- a/src/werewolf_game.py +++ b/src/werewolf_game.py @@ -69,6 +69,7 @@ class Game: await self.for_all_player(lambda p: p.send_info(f"Your role: **{p.night_role.name()}**")) async def night_phases(self): + # TODO: implement waiting if role in middle await asyncio.gather(*[self.role[r].query() for r in [Doppelganger, Seer, Robber, Troublemaker, Drunk]]) # slow await self.role[Doppelganger].send_copy_info() await self.role[Doppelganger].simulate() # slow diff --git a/src/werewolf_players.py b/src/werewolf_players.py index 285844a..77f1589 100644 --- a/src/werewolf_players.py +++ b/src/werewolf_players.py @@ -49,6 +49,7 @@ class Player: text = f"{question}\n" + f"{'='*len(question)}\n\n" + '\n'.join(f"[{str(i)}]({str(options[i])})" for i in range(len(options))) await self.dm.send(f"```md\n{text}```") + # TODO: Basic Converters (https://discordpy.readthedocs.io/en/latest/ext/commands/commands.html#basic-converters) def check_num(self, choice, N): if not choice.isdigit(): raise ValueError(f"Your choice {choice} is not a number")