From 4d69a84bdd2177ef2e86533e6bb9579d445a053d Mon Sep 17 00:00:00 2001 From: CHIBOUB Chakib Date: Wed, 11 Sep 2024 16:42:00 +0200 Subject: [PATCH] merging with theouche ok --- pong/game/game.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pong/game/game.py b/pong/game/game.py index b86ad52..1bd6f27 100644 --- a/pong/game/game.py +++ b/pong/game/game.py @@ -67,7 +67,8 @@ class Game: steps = 60#random.randint(10, 60) self.future_ball_position = await self.predict_ball_trajectory(steps) x = 0 - await self.update_bot_position() + if self.botgame: + await self.update_bot_position() await self.handle_pad_movement() await self.update_game_state() await self.send_game_state()