Tic-Tac-Toe · Classic & Ultimate
Tic-Tac-Toe has already been fully solved mathematically: it's proven that if both sides play without a single mistake, the result is always a draw, no exceptions. And yet the game is still fun, for a simple reason: people make mistakes. Players alternate placing X and O across a 3×3 grid, racing to line up three of their own mark first, and the real skill here was never "how do I win." It's "how do I avoid mistakes, and how do I punish my opponent's."
Not every square is equal. The center touches four lines at once (two diagonals plus one row and one column), making it the single strongest opening square. Corners touch three lines each, the second-best option, and they're also the easiest squares to build a fork from. Edges (the middle of each side) touch only two lines, the weakest of the three. Opening on an edge hands over the initiative before the game even really starts.
There's exactly one way to win Tic-Tac-Toe through skill: the fork. It's a single move that creates two different winning lines at once. Your opponent can only block one, so the other line wins automatically. The more corners you hold, the more lines you're touching simultaneously, which is exactly why corners are the second-strongest opening square.
Follow this checklist, in this order, on every single move, and you will never lose.
In AI games you play X and move first, and the AI plays O.
The trick against Normal is to keep a fork in preparation. Opening in a corner gives you more chances to build one, and since Normal plays somewhere random half the time, it often fails to stop your setup. Against Hard, practice following the defensive order above to hold the draw.
We had Omokboard's AI levels play each other (measured October 18, 2026, alternating who moves first). Each figure is the win rate of the first level against the second, with draws counted as half a win.
| Matchup | Win rate | Games |
|---|---|---|
| Classic Hard vs Normal | 76.3% (21W 19D) | Classic 40, Ultimate 20 |
| Classic Normal vs Easy | 71.3% (24W 9D 7L) | Classic 40, Ultimate 20 |
| Classic Hard vs Easy | 96.3% (37W 3D) | Classic 40, Ultimate 20 |
| Ultimate Hard vs Normal | 100% (20W) | Classic 40, Ultimate 20 |
| Ultimate Normal vs Easy | 100% (20W) | Classic 40, Ultimate 20 |
| Ultimate Hard vs Easy | 100% (20W) | Classic 40, Ultimate 20 |
Classic Hard never lost in 80 games. Tic-Tac-Toe is a draw when both sides play perfectly, so against Hard a draw is the best you can do.
Ultimate Hard spends 72 ms per move on average and 263 ms at most.
For other games and the full method, see AI Difficulty Benchmarks.
Once classic Tic-Tac-Toe feels completely natural, Ultimate Tic-Tac-Toe opens up a whole different kind of fun. Every square of a big 3×3 board is itself a small 3×3 Tic-Tac-Toe board, for 81 squares in total. Win three-in-a-row inside a small board and you claim that entire board; line up three claimed boards on the big grid and you win the whole game. Where the classic version can be fully calculated at a glance, Ultimate collapses fast if you're not thinking several moves ahead.
Understand this one rule and everything else follows naturally: the cell you play decides which small board your opponent has to play in next. Play the "top-right cell" in any board, for example, and your opponent must play somewhere in the "top-right board" (which lights up yellow). If that board is already decided or completely full, your opponent gets an exception: they may play in any board they like. Winning three-in-a-row inside a small board claims it (a drawn small board belongs to neither side), and lining up three claimed boards on the big grid wins the whole match.
This is the single biggest shift from classic play. The real purpose of your move isn't the cell itself. It's which board that cell sends your opponent to next. Never send them somewhere they can easily win or gain an advantage. Sending them into an already-finished board is especially risky, since it hands them the freedom to play anywhere, so avoid it when you can.
The center board and the center cell within any board both stay valuable here too, since the center board touches all four lines of the big grid. Sometimes sacrificing a small board on purpose is the right call, if it keeps forcing your opponent into bad boards afterward. And don't get so absorbed in one small board that you miss a brewing two-in-a-row on the big grid. Always keep an eye on the larger picture, and always block your opponent's big-board threats.
When it evaluates a position, the AI weights each spot on the big board: 4 for the center board, 3 for corner boards, and 2 for edge boards. That's the "center board matters most" principle from above, in numbers. Unlike the classic game, Ultimate has far too many possibilities to calculate to the end, so even the Hard AI isn't perfect. It can't see a plan that only pays off more than six moves out.