Skip to content

Conversation

@Ayush3941
Copy link

@Ayush3941 Ayush3941 commented Aug 3, 2025

πŸš€ PR: Add Polished Snake Game with GUI and Persistent High Score

#22

βœ… Features Implemented:

  • Modern Tkinter-based Snake Game UI
  • Responsive movement using arrow keys
  • Food spawning with collision avoidance
  • Real-time score and high score display
  • Persistent high score saved in snake_game_save.json
  • Smooth game loop with after() callback
  • Auto game over detection on collision
  • Restart button with state reset

πŸ“ File Structure:

πŸ“„ snake/snake_game.py          # Main game logic and UI
πŸ“„ snake/snake_game_save.json   # Auto-generated save file (high score)

🧠 Design Considerations:

  • Minimalist retro look with soft color contrast
  • Configurable grid size and cell size for scalability
  • Separate UI layer (labels/buttons) and canvas for rendering

πŸ”œ Future Improvements (Not in Scope):

  • Pause/Resume functionality
  • Power-ups, obstacles, or multiple difficulty levels
  • Kivy or PyGame migration for mobile/animation enhancements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant