Skip to content

🐛 [Bug]: Snake game restarts in background while Game Over overlay remains visible #523

@Mudita-Singh

Description

@Mudita-Singh

📌 Description

In the Snake Game, after the player loses and the Game Over screen appears, clicking the "Start Game" button restarts the game logic but does not remove the Game Over overlay.

As a result, the snake continues moving in the background while the Game Over screen remains visible, making the game unplayable until it crashes again.

🔄 Steps to Reproduce

  1. Open the Snake Game.
  2. Start a game and intentionally lose.
  3. Wait for the "GAME OVER!!" screen to appear.
  4. Click the "Start Game" button below the game board.
  5. Observe the game behavior.

🎯 Expected Behavior

The Game Over overlay should disappear and a new game should start normally.

❌ Actual Behavior / Error Logs

The snake starts moving behind the Game Over overlay while the overlay remains visible. The player cannot properly continue playing and the snake eventually dies again in the background.

💻 Environment

  • OS: Windows 11
  • Python Version: N/A (Web Application)
  • File Name: Snake Game (Web App)

  • I am a registered GSSoC 2026 contributor.
  • I want to be assigned to fix this issue.

🙋 Assignment Request

I would like to work on fixing this issue as part of GSSoC'26. Kindly assign this issue to me if it is available.

Thank you!

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions