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

Function toggle_pause_resume

Snake Game Using Turtle/main.py:103–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101 scoreboard.update_scoreboard()
102
103def toggle_pause_resume():
104 global game_state
105 if game_state == "playing":
106 game_state = "paused"
107 scoreboard.display_pause()
108 elif game_state == "paused":
109 game_state = "playing"
110 scoreboard.update_scoreboard()
111
112def restart_game():
113 global game_state

Callers 1

handle_clickFunction · 0.85

Calls 2

display_pauseMethod · 0.80
update_scoreboardMethod · 0.80

Tested by

no test coverage detected