Skip to content

feat: add Snake game to tools menu#11

Open
Zuriefais wants to merge 2 commits into
trilwu:masterfrom
Zuriefais:feat/snake-game
Open

feat: add Snake game to tools menu#11
Zuriefais wants to merge 2 commits into
trilwu:masterfrom
Zuriefais:feat/snake-game

Conversation

@Zuriefais

Copy link
Copy Markdown

feat: add Snake game to tools menu

This PR introduces a classic Snake arcade game to the tools menu, providing a simple interactive experience with adjustable difficulty.

Summary

What is the goal of this PR?
Add a playable Snake game to the tools menu with configurable difficulty levels and core gameplay mechanics.

What changes are included?

  • Implemented a 15×15 game grid with wrap-around (teleporting) borders
  • Added three difficulty levels (Easy, Medium, Hard) affecting game speed
  • Introduced a pre-game difficulty selection screen
  • Displayed the current score above the game grid
  • Implemented self-collision detection (game over condition)
  • Enabled continuous gameplay through wall wrapping

Additional Context

  • The game is designed to be lightweight and responsive, with minimal impact on performance
  • Wrap-around mechanics remove wall collision edge cases but require careful handling of position updates
  • Reviewers may want to focus on game loop timing and collision detection logic

AI Usage

Did you use AI tools to help write this code? Yes

Zuriefais and others added 2 commits April 19, 2026 19:48
   feat: add Snake game to tools menu

   New arcade game with:
   - 15x15 grid with wrap-around (teleport) borders
   - 3 difficulty levels (Easy/Medium/Hard) controlling speed
   - Score display above the grid
   - Difficulty selection screen before gameplay
   - Self-collision ends the game, walls wrap around
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