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()