def hit(self, window): pong_sound.paddle_hit(window) pass
def hit(self, window): self.hit_count += 1 if self.hit_count > 6: self.bias = random.random() - 0.5 # Recalculate our bias, this game is going on forever self.hit_count = 0 pong_sound.paddle_hit(window)