def new_apple(self):
        while True:
            self.apple = self.random_spot()
            if self.apple not in self.snake_parts:
                break
dataset/ETHPy150Open thomasballinger/curtsies/examples/snake.py/Snake.new_apple/original