add tournament code to win server game request

This commit is contained in:
2024-10-15 13:43:40 +02:00
parent 93da99d559
commit 57ca83841e
4 changed files with 17 additions and 14 deletions

View File

@ -6,7 +6,7 @@
# By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/10/04 17:17:07 by tomoron #+# #+# #
# Updated: 2024/10/14 20:23:18 by tomoron ### ########.fr #
# Updated: 2024/10/15 13:37:13 by tomoron ### ########.fr #
# #
# **************************************************************************** #
@ -108,7 +108,7 @@ class Tournament:
else:
right = self.createGames(players, level + 1)
left = self.createGames(players, level + 1)
return(TournamentGame(left, right))
return(TournamentGame(left, right, self.code))
def start(self):
self.started = True