Skip to content

matthewwalsh0/tetris-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris (Node + TypeScript)

A basic terminal-based implementation of Tetris.

Features

  • Written in TypeScript and executed with node.
  • Rendering done within the terminal using blessed.
  • High scores recorded in a local PostgreSQL database.

Setup

  1. Clone repo.
  2. Open repo directory.
  3. npm install -g .
  4. Install PostgreSQL.
    • brew install postgresql (Mac OS X)
    • Assumes a default "postgres" database exists, used to create the client connection.

Usage

tetris -h

Options:
      --version     Show version number                                [boolean]
  -d, --difficulty  How fast the pieces move down.         [number] [default: 0]
  -h, --help        Show help                                          [boolean]

Screenshots

ScreenShot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published