Skip to content

Systems

2025

tictactoe.c

Minimax, taken further than necessary

Tic-tac-toe gameplay with minimax analysis
3
difficulties
α-β
pruning

A modular C implementation with alpha-beta pruning, three difficulty levels, persistent statistics, and an AI transparency mode.

A tic-tac-toe game in C with a minimax AI, alpha-beta pruning, three difficulty levels, persistent player statistics, leaderboards, and multiple gameplay modes. The part that was not in any spec: an AI transparency mode that shows the candidate moves, the evaluation score, and the search telemetry, so the player can see why the computer moved. It felt wrong to have an AI making decisions without explaining itself.

Search telemetry
Search telemetry
Leaderboard
Leaderboard