A basic terminal-based implementation of Tetris.
- Written in TypeScript and executed with node.
- Rendering done within the terminal using blessed.
- High scores recorded in a local PostgreSQL database.
- Clone repo.
- Open repo directory.
npm install -g .
- Install PostgreSQL.
brew install postgresql
(Mac OS X)- Assumes a default "postgres" database exists, used to create the client connection.
tetris -h
Options:
--version Show version number [boolean]
-d, --difficulty How fast the pieces move down. [number] [default: 0]
-h, --help Show help [boolean]