taylorconor/tinytetris

https://github.com/taylorconor/tinytetris

80×23 terminal tetris!

tinytetris gif

tinytetris.cpp

This is the 80×23 version. You control it with a (left), d (right), w (rotate),
s (drop), and q (quit). It depends on curses.h (so you’ll need to compile with
-lcurses, and install curses if you don’t already have it) and requires C++11.

tinytetris-commented.cpp

This one is almost identical to tinytetris.cpp, but not minified, and with some
comments to make it easier to read (but it’s still tricky to read in certain parts).

Leave a Reply

Your email address will not be published. Required fields are marked *

Next Post

Timestamps and Time Zones in PostgreSQL

Sun Mar 31 , 2019
https://phili.pe/posts/timestamps-and-time-zones-in-postgresql/

You May Like