Archived
Some game actions work
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user