descriptionnone
repository URLhttps://github.com/troglobit/tetris.git
ownergospodin@420blaze.it
last changeSun, 22 Jun 2025 15:38:07 +0000 (22 17:38 +0200)
last refreshWed, 29 Oct 2025 10:55:02 +0000 (29 11:55 +0100)
content tags
README.md

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

[!IMPORTANT] 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.

shortlog
2025-06-22 Joachim WibergBump version for v1.5.0 releasemaster1.5.0
2025-06-22 Joachim WibergConstify
2025-06-22 Joachim WibergAdd support for arrow keys
2025-06-12 Joachim WibergDon't exit mid game if resizing is too small
2025-06-12 Joachim WibergRefresh and simplify
2025-06-12 Joachim WibergBump version for next release, 1.5.0-beta1
2025-06-12 Joachim Wiberg.github: bump workflow actions and refactor release job
2025-06-12 Joachim WibergHandle terminal size changes at runtime
2025-06-12 Joachim WibergFix final score display position at game end
2025-06-12 Joachim WibergCenter game inside terminal
2025-06-12 Joachim WibergProbe terminal size, bail if too small
2025-06-12 Joachim WibergDrop hard-coded xoffset for centering
2025-06-08 Joachim WibergRefactor highscore implementation, add fallback to...
2025-06-08 Joachim Wiberg... Drop unnecessary input capture during line clearing...
2025-06-08 Joachim WibergMove highscore display outside of main game loop
2022-09-04 Joachim WibergMinor refactor to simplify signal handler
...
tags
4 months ago 1.5.0
3 years ago 1.4.0
4 years ago 1.3.0
4 years ago 1.3.0-beta8
4 years ago 1.3.0-beta7
4 years ago 1.3.0-beta6
4 years ago 1.3.0-beta5
4 years ago 1.3.0-beta4
4 years ago 1.3.0-beta3
4 years ago 1.3.0-beta2
8 years ago 1.3.0-beta1
13 years ago 1.2.1
15 years ago 1.2.0
15 years ago 1.1.0
15 years ago -
16 years ago 1.0.1 Minor bugfix release.
...
heads
4 months ago master
forks
Cached version (6418s old)
tetris/extra.git Troglobit's micro tetris with opinionated... gospodin@420blaze.it 2 years ago