Tic-Tac-Toe Coach
Game Overview
Learn how to win every time. Play Tic Tac Toe against an AI coach that explains every move. Great for kids learning logic and strategy.
How to Play
Play a classic 3x3 match against the AI. Turn on 'Coach Mode' to see real-time move evaluations and descriptions of why a move is good or bad. Master the classic strategies like forks and blocks!
About Tic-Tac-Toe Coach
Tic-Tac-Toe was solved decades ago. With perfect play from both sides, every game ends in a draw. This is true and also why most online versions of Tic-Tac-Toe are useless â they either let you win because the computer plays randomly, or they always draw because the computer plays perfectly, and either way there's nothing to learn.
This version is built around teaching, not winning. The AI uses the classic Minimax algorithm, which means it will never lose. But when you turn on Coach Mode, every time it's your turn, the game shows you which moves are strong, which are weak, and why. If you make a mistake â say, you fail to block a fork â the game pauses and explains what just happened. You can keep playing and lose, or undo and try again. That's how you actually get better at a game like this.
The strategies worth learning are the same ones competitive players have used since the 1950s. The first move matters less than people think â corners and centre are both fine; edges are weaker. The second move matters more. If you're playing first and you took a corner, your opponent should take the centre, because anything else lets you set up a fork (two simultaneous winning threats). If they don't take the centre, you should respond by taking the diagonally opposite corner and aiming for that fork on move three. Most kids and most adults get this wrong the first ten times they play. That's exactly when Coach Mode is most useful.
Once you can reliably force a draw against the AI, the game stops being interesting â and that's the point. Tic-Tac-Toe is a stepping stone to bigger logic games. The skills here (look at the whole board, find the threat, count moves ahead, recognise that some positions are losing no matter what you do) transfer directly to Cribbage, to Sudoku, and to Jazz Ball, where the same kind of forward-looking pattern matching is the whole skill.
Build notes. Minimax for Tic-Tac-Toe is short enough to fit on a postcard â there are only 9 positions and at most 9 moves, so even a naive implementation finishes the full game tree in microseconds. The interesting code is the explainer: for each potential player move, the algorithm computes how much worse the player's best outcome becomes versus the optimal move, and surfaces a human-readable reason for the gap.
Frequently Asked Questions
If the hard AI never loses, what's the point of playing?
To learn to draw. Reaching a draw against a perfect opponent means you played perfectly too. Coach Mode explains exactly which moves get you there.
What does 'fork' mean in tic-tac-toe?
A board position where one of your moves creates two winning threats at once. Your opponent can only block one, so you win on the next turn.
Can I play against a friend?
There's a two-player mode for pass-and-play on a single device. Online multiplayer isn't a thing here â too much overhead for tic-tac-toe.
Why is the Easy mode actually still hard?
Even on Easy the AI blocks immediate threats, otherwise it'd be insulting. It just doesn't plan forks. Beat that and step up to Medium.
Similar Games to Explore
Embed this Game
Want to feature this game on your own website? Copy the code below: