https://github.com/hiimsergey/ttt
A simple and configurable Tic-Tac-Toe game in C
https://github.com/hiimsergey/ttt
2d 2d-game game raylib raylib-c raylib-examples raylib-game tic-tac-toe tic-tac-toe-game tictactoe tictactoe-game
Last synced: 21 days ago
JSON representation
A simple and configurable Tic-Tac-Toe game in C
- Host: GitHub
- URL: https://github.com/hiimsergey/ttt
- Owner: hiimsergey
- License: gpl-3.0
- Created: 2024-06-26T18:22:15.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-04-06T10:11:40.000Z (about 2 months ago)
- Last Synced: 2025-05-13T00:52:11.494Z (21 days ago)
- Topics: 2d, 2d-game, game, raylib, raylib-c, raylib-examples, raylib-game, tic-tac-toe, tic-tac-toe-game, tictactoe, tictactoe-game
- Language: C
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ttt
A simple Tic-Tac-Toe game written in C using Raylib.
You can customize the board length in cells and the length of the needed streak to win the game.
My second project in C.
## Compile & Run (on Linux at least)
### If you have raylib installed on the system
```sh
git clone https://github.com/hiimsergey/ttt
cd ttt
make dyn
```### If you want to compile Raylib yourself
```sh
git clone --recursive https://github.com/hiimsergey/ttt
cd ttt/external/raylib
```Now, compile Raylib with your desired options. See [here](https://github.com/raysan5/raylib/wiki/CMake-Build-Options). An example would be:
```sh
mkdir build
cd build
cmake .. -DPLATFORM=Desktop -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../install
cmake --build . --target install
```Now, compile ttt:
```sh
cd ../../..
make
#make semistatic # If the binary should only depend on GLFW
```