Skip to content

Repository files navigation

Garden Snake

English | 简体中文

Node.js 24 pnpm 10.33.2 React 18.3.1 Vite 8.2.1 TypeScript 5.9.3 Sass 1.102.0 Test Coverage License Sponsor

A polished browser edition of the classic Snake game. It supports keyboard and touch controls, three speed modes, pause and resume, and a locally stored high score.

Play Garden Snake

Garden Snake game board with score and touch controls

Features

  • Deterministic classic Snake rules with wall and self collision
  • Calm, classic, and rapid speed modes
  • Arrow-key, WASD, and touch controls
  • Pause, resume, restart, and game-over states
  • High scores stored locally in the browser
  • Responsive English and Simplified Chinese interface

Development

Requires Node.js 24 and pnpm 10.33.2.

corepack enable
pnpm install
pnpm dev

Run production and test checks with:

pnpm build
pnpm test:coverage

License

MIT. The original 2020 copyright notice is preserved in LICENSE.

About

A responsive bilingual Snake game with touch controls, difficulty modes, and local high scores.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages