github.com/troglobit / tetris

Micro Tetris™, based on the 1989 IOCCC Obfuscated Tetris version by John Tromp

Commit log
aafa95e ⎇ master🏷 1.5.0Bump version for v1.5.0 release Joachim Wiberg 14 months ago
75ca73c Constify Joachim Wiberg 14 months ago
1014da8 Add support for arrow keys Joachim Wiberg 14 months ago
796e60d Don't exit mid game if resizing is too small Joachim Wiberg 15 months ago
6d1c4fa Refresh and simplify Joachim Wiberg 15 months ago
ea69c28 Bump version for next release, 1.5.0-beta1 Joachim Wiberg 15 months ago
9544c73 .github: bump workflow actions and refactor release job Joachim Wiberg 15 months ago
9f21aa0 Handle terminal size changes at runtime Joachim Wiberg 15 months ago
10bd8fe Fix final score display position at game end Joachim Wiberg 15 months ago
63196f4 Center game inside terminal Joachim Wiberg 15 months ago
Micro Tetris in Action

Micro Tetris™

Micro Tetris™ — one of the smallest Tetris implementations in the world! Utilizing only ANSI escape sequences to draw the board, no external library dependencies other than a standard C library, like uClibc or musl libc. Hence, very suitable for embedded devices in need of an easter egg ;-)

Issue tracker, GIT repository, and releases available at GitHub:

Docker Image

Pre-built Docker images are available from ghcr.io as of the v1.4.0 release. Previous releases available on https://hub.dockercom. The GIT repository has a Dockerfile for building your own image from the source tree:

cd tetris/
docker build -t troglobit:tetris .
.
.
.
docker run -ti troglobit:tetris

These instructions assume you already have docker.io installed.

Origin & References

The game is based on a 1989 International Obfuscated C Code Contest (IOCCC) entry made by John Tromp. See John's home page for the source code http://tromp.github.io/tetris.html

This human-readable "clone" is maintained by Joachim Wiberg.