add: tictactoe: timer and afk handling

This commit is contained in:
Namonay
2024-05-06 19:56:09 +02:00
parent 75c4a81364
commit 3a0b41d374
3 changed files with 51 additions and 9 deletions

View File

@ -47,6 +47,7 @@ class TicTacToeGame(AGame):
self._map[newmove.get("targetMorpion")][newmove.get("targetCase")] = newmove.get("sign")
player.currentMorpion = int(newmove.get("targetCase"))
self.changeTurn()
self.time = time.time()
return True
return False