https://github.com/k0lala/octisc
2-player Tetris game, C version
https://github.com/k0lala/octisc
c
Last synced: 10 months ago
JSON representation
2-player Tetris game, C version
- Host: GitHub
- URL: https://github.com/k0lala/octisc
- Owner: K0LALA
- Created: 2025-08-15T10:11:20.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-09-01T10:47:06.000Z (10 months ago)
- Last Synced: 2025-09-01T12:41:02.237Z (10 months ago)
- Topics: c
- Language: C
- Homepage:
- Size: 66.4 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Octis
This game is based on **Tetris** but this time as a 2-player game where the goal is to make the oppponent place a block over the limit.
This version of the game is written entirely in C and using SDL2 for graphics.
This same game is also written in [Python](https://github.com/K0LALA/OctisTerminal) but has less features.

## Building
In order to build the program, you first need to install the SDL2 and SLD2_ttf libraries.
Then using GCC, or the compiler of your choice:
`gcc -o octis.out octis.c screen.c $(sdl2-config --cflags --libs) -lSDL2_ttf`
If you want to create a Windows executable from Linux, you can refer to this link.
With a command that may look like this:
`x86_64-w64-mingw32-gcc -o octis.exe octis.c screen.c $(x86_64-w64-mingw32-pkg-config sdl2 --cflags --libs) -lSDL2_ttf`
To work, you'll need `SDL2.dll` and `SDL2_ttf.dll` libraries either in the same folder as .exe or in a folder listed in the PATH.
You can grab these online or from the Releases page.
## License
You are free to use the entirety of the idea and the code as you wish as this was made for eductional purposes.