(self)
| 14 | class Scoreboard(Turtle): |
| 15 | """ This class maintains the scoreboard, high score, and game messages. """ |
| 16 | def __init__(self): |
| 17 | super().__init__() |
| 18 | self.screen = Screen() # Get access to the screen object |
| 19 | self.score = 0 |
| 20 | self.high_score = self.load_high_score() |
| 21 | self.penup() |
| 22 | self.hideturtle() |
| 23 | self.update_scoreboard() |
| 24 | |
| 25 | def load_high_score(self): |
| 26 | """Loads high score from highscore.txt. Returns 0 if not found.""" |
nothing calls this directly
no test coverage detected