(self)
| 10 | """Manages the gameplay logic and its user interactions.""" |
| 11 | |
| 12 | def __init__(self): |
| 13 | self.display = Display() |
| 14 | self.snake = Snake() |
| 15 | self.score = 0 |
| 16 | self.food = None |
| 17 | self.place_food() |
| 18 | self.high_score = self.load_high_score() |
| 19 | |
| 20 | def game_loop(self): |
| 21 | while True: |
nothing calls this directly
no test coverage detected