MCPcopy Index your code
hub / github.com/geekcomputers/Python / game_over

Method game_over

Snake Game Using Turtle/scoreboard.py:57–63  ·  view source on GitHub ↗

Displays the Game Over message and instructions.

(self)

Source from the content-addressed store, hash-verified

55 self.update_scoreboard()
56
57 def game_over(self):
58 """Displays the Game Over message and instructions."""
59 self.goto(0, 40)
60 self.color(colors.GAME_OVER_COLOR)
61 self.write("GAME OVER", align="center", font=MESSAGE_FONT)
62 self.goto(0, -40)
63 self.write("Click 'Restart' or Press 'R'", align="center", font=INSTRUCTION_FONT)
64
65 def display_pause(self):
66 """Displays the PAUSED message."""

Callers 1

game_loopFunction · 0.80

Calls 1

colorMethod · 0.80

Tested by

no test coverage detected