Skip to content
About this project

Tic-Tac-Toe

Play against the AI I built

The computer searches every possible game with minimax. You cannot beat it; a draw is the best you can do.

Your turn. You are X.

You
0
Computer
0
Draws
0

Training the Easy mode model…

The original game is written in C with a GTK3 window. This page runs the same logic, ported to TypeScript so it works in a browser: minimax with alpha-beta pruning, and a linear regression model trained by gradient descent with no machine learning libraries.