Merge branch 'adrien' of github.com:AudebertAdrien/ft_transcendence into trash

This commit is contained in:
Theouche
2024-08-27 17:00:39 +02:00
10 changed files with 140 additions and 147 deletions

View File

@@ -40,7 +40,7 @@ class MatchMaker:
await asyncio.sleep(1)
self.timer += 1
# Waiting for more than 30s -> BOT game
if self.timer >= 30 and self.waiting_players:
if self.timer >= 15 and self.waiting_players:
player1 = self.waiting_players.pop(0)
print(f"*** MATCH FOUND: {player1.user.username} vs BOT")
self.botgame = True
@@ -112,4 +112,4 @@ class MatchMaker:
match_maker = MatchMaker()
# to get what you want use get_player_p_win(player_name) !! (voir utils.py)
#
#