Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A console-based tetris implementation in go.
Go
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tetris
.gitignore
LICENSE
README.md
doc.go
go-tetris.go

README.md

A simple terminal tetris implementation in Go.

Installation:

$ go get github.com/cespare/go-tetris

Usage:

$ go-tetris

Controls

  • Move piece down: , j
  • Move piece left: , h
  • Move piece right: , l
  • Rotate piece: , k
  • Quick drop: space
  • Quit: q, ctrl-c

Implemented features

  • Random piece generation
  • Automatic advancement
  • Collision detection
  • Anchoring/switching to the next piece
  • Quick drop
  • Line clearing
  • Rotation
  • Piece colors
  • Print next piece
  • Scoring
  • Game Over
  • Line clearing animations
  • Speeding up
  • Pausing

To implement

  • High scores
  • Music + sound effects
  • 'Ghost' piece showing where your piece will land
Something went wrong with that request. Please try again.