go-tetris

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2021 License: MIT

README

A simple terminal tetris implementation in Go.

Installation:

go install github.com/cespare/go-tetris@latest

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

Directories

Path Synopsis
This is a simple implementation of a console-based Tetris clone.
This is a simple implementation of a console-based Tetris clone.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL