Some game actions work

This commit is contained in:
2024-04-20 15:04:27 +02:00
parent fa045c235f
commit 0226fb3a60
5 changed files with 69 additions and 27 deletions
+5
View File
@@ -189,3 +189,8 @@ class Game(Serializable):
+ " players : "
+ ", ".join([p.username for p in self.players])
)
async def end_turn(self):
team_index = self.teams.index(self.turn)
self.turn = self.teams[(team_index + 1) % len(self.teams)]
await self.notify_controller("update", self.serialize_guest())