From a4652642d15e9456b9ffa2ee8da3a3e571c8b746 Mon Sep 17 00:00:00 2001 From: bibin Date: Sun, 12 Jul 2020 15:53:49 +0200 Subject: [PATCH] added TODO's --- src/werewolf_game.py | 1 + src/werewolf_players.py | 1 + 2 files changed, 2 insertions(+) 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")