A small 1341 sloc (as of
7daa3b)
line Tetris clone that can be played in the terminal. Requires
ncurses
.
> cloc include/ src/
19 text files.
19 unique files.
0 files ignored.
github.com/AlDanial/cloc v 1.80 T=0.12 s (159.6 files/s, 15912.0 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
C 9 283 134 1088
C/C++ Header 10 77 59 253
-------------------------------------------------------------------------------
SUM: 19 360 193 1341
-------------------------------------------------------------------------------
Clone the repository and run make
in the game's top-level directory. This
creates the game executable terminal_blocks
.
> git clone https://github.com/MisanthropicBit/terminal_blocks
> make
> ./terminal_blocks
To combat boredom, you can add the game's directory to your PATH
.
PATH=$PATH:<path-to-terminal_blocks>
Or add an alias for the executable.
alias terminal_blocks="<path-to-terminal_blocks-executable>"