Snake

6 model attempts

PromptBuild a classic Snake game in this repo. Scope & constraints: - Implement ONLY the classic Snake loop: grid movement, growing snake, food spawn, score, game-over, restart. - Reuse existing project tooling/frameworks; do NOT add new dependencies unless truly required. - Keep UI minimal and consistent with the repo’s existing styles (no new design systems, no extra animations). Implementation plan: 1) Inspect the repo to find the right place to add a small interactive game (existing pages/routes/components). 2) Implement game state (snake positions, direction, food, score, tick timer) with deterministic, testable logic. 3) Render: simple grid + snake + food; support keyboard controls (arrow keys/WASD) and on-screen controls if mobile is present in the repo. 4) Add basic tests for the core game logic (movement, collisions, growth, food placement) if the repo has a test runner. Deliverables: - A small set of files/changes with clear names. - Short run instructions (how to start dev server + where to navigate). - A brief checklist of what to manually verify (controls, pause/restart, boundaries).

Attempts 6