A simple raylib-based implementation of Tic-Tac-Toe with a minimax agent to play against; you can't win!
Instructions assume you are (1) using Linux or macOS and (2) that you have gcc (C99), zig, and git installed. (Theoretically, the command below will also work with Windows with minor changes.)
git clone https://github.com/bi3mer/c-tic-tac-toe.git
cd c-tic-tac-toe
zig build
./zig-out/tic-tac-toezig build -Doptimize=ReleaseFast # mac build
zig build -Dtarget=x86_64-windows -Doptimize=ReleaseFast # Windows Build