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.
Micro Tetris, based on an obfuscated tetris, 1989 IOCCC Best Game Copyright (c) 1989 John Tromp <john.tromp@gmail.com> Copyright (c) 2009-2021 Joachim Wiberg <troglobit@gmail.com> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.