()
| 110 | scoreboard.update_scoreboard() |
| 111 | |
| 112 | def restart_game(): |
| 113 | global game_state |
| 114 | if game_state == "game_over": |
| 115 | game_state = "playing" |
| 116 | snake.reset() |
| 117 | food.refresh(LEFT_WALL, RIGHT_WALL, BOTTOM_WALL, TOP_WALL) |
| 118 | scoreboard.reset() |
| 119 | |
| 120 | def is_click_on_button(name, x, y): |
| 121 | """Checks if a click (x, y) is within the bounds of a visible button.""" |
no test coverage detected