mail are now sent in a thread to not block serveur execution, bots are now limited by the map limits

This commit is contained in:
2024-10-22 16:38:20 +02:00
parent 4f0a0ac3aa
commit 648c9e12fa
6 changed files with 32 additions and 19 deletions

View File

@ -6,7 +6,7 @@
# By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/10/04 17:17:07 by tomoron #+# #+# #
# Updated: 2024/10/22 01:46:59 by tomoron ### ########.fr #
# Updated: 2024/10/22 16:32:35 by tomoron ### ########.fr #
# #
# **************************************************************************** #
@ -138,4 +138,7 @@ class Tournament:
nbLoop += 1
await asyncio.sleep(0.1)
self.broadcast({"action":7, "winnerId" : self.players.index(self.finalGame.winner)})
for x in self.players:
x.socket.tournament = None
self.players = []
print("tournament done, winner is ", self.finalGame.winner.socket.username)