mirror of
https://github.com/AudebertAdrien/ft_transcendence.git
synced 2026-11-09 18:07:08 +01:00
Merge branch 'adrien' of github.com:AudebertAdrien/ft_transcendence into trash
This commit is contained in:
@@ -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)
|
||||
#
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user