Skip to content

Add game modes: Classic vs No walls#127

Open
ria-goveas wants to merge 1 commit intoRperry2174:mainfrom
ria-goveas:ria/game-modes
Open

Add game modes: Classic vs No walls#127
ria-goveas wants to merge 1 commit intoRperry2174:mainfrom
ria-goveas:ria/game-modes

Conversation

@ria-goveas
Copy link
Contributor

Summary

Adds at least two playable modes for the Snake game (per PRD Feature 4).

Changes

  • Mode selector UI: Start screen with radio options before game starts
    • Classic — hit a wall and you die
    • No walls — wrap around the edges
  • gameModes.js: New module for mode selection and boundary logic (mirrors highScores.js separation)
  • Boundary logic: Classic ends game on wall; Wrap mode uses modulo to wrap head position

Assigned to

@ria-goveas (Ria)

Made with Cursor

- Mode selector UI on start screen before game
- gameModes.js module for mode selection and boundary logic
- Classic: hit wall ends game; Wrap: snake wraps to opposite edge

Co-authored-by: Cursor <cursoragent@cursor.com>
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