A terminal Tetris written in C, plus a few small C exercises from university programming labs.
| File | What it is |
|---|---|
tetris.c, tetris.h, main.c |
Console Tetris (12 x 15 board): falling blocks, rotation, line clearing, levels |
XOgame.c |
Tic-Tac-Toe in the terminal (human vs human or human vs computer) |
lab1.c, lab2.c, 1.c, 6.c, mali.c |
Small lab exercises |
Tetris uses termios, so it needs a POSIX terminal (Windows users: WSL).
gcc -I. main.c tetris.c -o tetris
./tetrisgcc XOgame.c -o xo && ./xo- Student IDs in the sample data files were masked.
- The prebuilt
.exefiles in the repo are Windows binaries and are not needed to build the games.