Skip to content

Smooth Snake movement and refresh its appearance - #256

Merged
djeada merged 1 commit into
masterfrom
codex/smooth-snake-animation
Nov 5, 2026
Merged

djeada merged 1 commit into
masterfrom
codex/smooth-snake-animation

Conversation

@djeada

@djeada djeada commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Animate Snake continuously between grid steps and draw a rounded, tapered body with spots, directional eyes, a flickering forked tongue, and a distinct crash expression. Preserve animation progress when pausing and reset it when starting a new game.

Add a non-mutating peek() engine method that shares collision and food prediction with step(), so animation follows queued turns and stops before fatal moves. Add regression tests for prediction consistency and the move counter used by the visual details.

Validation: npm run test:games passed all 39 engine tests and 21 Chromium desktop/mobile browser tests. JavaScript syntax checks and git diff --check also passed.

@netlify

netlify Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for goofy-brahmagupta-0a14f0 ready!

Name Link
🔨 Latest commit 2d1c677
🔍 Latest deploy log https://app.netlify.com/projects/goofy-brahmagupta-0a14f0/deploys/6aecd2580fe1baf4bfc2ae52
😎 Deploy Preview https://deploy-preview-256--goofy-brahmagupta-0a14f0.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@djeada
djeada merged commit 1939f4b into master Nov 5, 2026
6 checks passed
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