@terminalgames/ink-snake
v0.1.0
Published
Terminal Snake built with Ink.
Maintainers
Readme
Ink Snake
Terminal Snake built with Ink.
Install
Requires Node 20+.
npx @terminalgames/ink-snakeGlobal install
npm install -g @terminalgames/ink-snake
ink-snakeControls
| Key | Action |
| --- | --- |
| h / ← | Turn left |
| l / → | Turn right |
| k / w / ↑ | Turn up |
| j / ↓ | Turn down |
| p | Pause / resume |
| r / enter | Restart |
| ? | Toggle help |
| q | Quit |
Development
npm install
npm run build
node dist/cli.jsnpm test
npm run typecheckGame logic lives in pure TypeScript modules under src/game/; Ink UI is under src/ui/.
Publish
Maintainers only. Requires access to the @terminalgames npm organization:
npm login
npm publish --access public