@terminalgames/ink-tetris
v0.1.0
Published
Terminal Tetris built with Ink.
Maintainers
Readme
Ink Tetris
Terminal Tetris built with Ink.
Install
Requires Node 20+.
The unscoped name ink-tetris is already taken on npm, so this package publishes as @terminalgames/ink-tetris. The command is still ink-tetris.
npm install -g @terminalgames/ink-tetrisOr run once without installing:
npx @terminalgames/ink-tetrisPlay
ink-tetrisControls
| Key | Action |
| --- | --- |
| h / ← | Move left |
| l / → | Move right |
| j / ↓ | Soft drop |
| k / w / ↑ | Rotate clockwise |
| a | Rotate counter-clockwise |
| space | Hard drop |
| c | Hold piece |
| 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