You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the Classic Snake Game reaches a GAME OVER!! state, neither of the "Restart Game" buttons functions correctly:
The Canvas Restart Button: Does nothing but clear the game-over text overlay; it fails to actually re-initialize or start the game loop.
The Bottom Modal Restart Button: Unexpectedly closes the game entirely and routes the user back to the home page dashboard.
🔄 Steps to Reproduce
Launch the Snake Game and play until you trigger a GAME OVER!! screen.
Test Button 1: Click the green Restart Game button inside the gray canvas.
Observe: The "GAME OVER!!" text disappears, but the game is frozen and does not start.
Test Button 2: Trigger a Game Over again, then click the green Restart Game button below the canvas.
Observe: The modal closes and routes you back to the project home page.
🎯 Expected Behavior
Both buttons should reset the game state (Score = 0, reset snake coordinates, spawn new food) and automatically restart the game loop within the canvas, keeping the user inside the modal.
📝 Description
When the Classic Snake Game reaches a GAME OVER!! state, neither of the "Restart Game" buttons functions correctly:
🔄 Steps to Reproduce
🎯 Expected Behavior
Both buttons should reset the game state (Score = 0, reset snake coordinates, spawn new food) and automatically restart the game loop within the canvas, keeping the user inside the modal.
❌ Actual Behavior / Error Logs
Screen.Recording.2026-05-20.195128.mp4
💻 Environment