Skip to content

About

A Tetris game implemented in C.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

TetrisGame

A terminal Tetris written in C, plus a few small C exercises from university programming labs.

What is inside

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

Build and run (Linux / macOS / WSL)

Tetris uses termios, so it needs a POSIX terminal (Windows users: WSL).

gcc -I. main.c tetris.c -o tetris
./tetris
gcc XOgame.c -o xo && ./xo

Notes

  • Student IDs in the sample data files were masked.
  • The prebuilt .exe files in the repo are Windows binaries and are not needed to build the games.

About

A Tetris game implemented in C.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages