Tic Tac Toe
Local 2-Player · Simple & Fast
Loading game...
Local 2-Player · Simple & Fast
Tic Tac Toe is one of the simplest and most universally recognized games in the world. Versions of the game have been played for thousands of years — similar three-in-a-row games were found carved into ancient Egyptian roofing tiles and Roman ruins. The modern 3x3 grid with X and O markings became popular in the mid-19th century. Despite its simplicity, Tic Tac Toe is mathematically solved: with perfect play from both sides, the game always ends in a draw.
The real value of Tic Tac Toe is teaching strategic thinking in its purest form. New players quickly learn that the center square is the strongest opening, giving you four possible lines to complete. Corners are next best because they participate in three lines. Edge squares are the weakest opening — they only participate in two lines and are easier to block. The key attacking concept is the fork: placing your mark so that you create two separate winning threats at once. Your opponent can only block one, so you win on the next turn.
Tic Tac Toe occupies a unique place in the history of artificial intelligence. It was one of the first games ever programmed on a computer — in 1952, A.S. Douglas created OXO, a Tic Tac Toe game for the Cambridge EDSAC computer, as part of his PhD thesis on human-computer interaction. This makes Tic Tac Toe the first graphical computer game in history. The game's small state space (only 5478 unique board positions) makes it ideal for teaching fundamental AI concepts like minimax search, game trees, and alpha-beta pruning — the same algorithms that power modern chess and Go engines.
Playing against a strong AI opponent is the fastest way to internalize these concepts. Our Easy mode gives you room to experiment with openings and fork setups without being immediately punished. Medium and Hard modes provide intermediate stepping stones. Impossible mode plays perfectly — every move is calculated to guarantee at least a draw. You cannot win, but you can learn. The AI will demonstrate optimal defensive play, showing you how to recognize threats and respond correctly every time.
Fork defense is where Tic Tac Toe reveals its depth. The key insight is that forks do not appear suddenly — they are built over multiple moves through a setup called the "dual threat." Your opponent creates two separate two-in-a-row lines that share a common empty square. When they fill that square, both lines become threats simultaneously. Recognizing the setup pattern before the fork completes is the difference between a beginner and an intermediate player. Watch for any configuration where your opponent has two lines that intersect at a single empty cell. If you block that cell before they occupy it, you prevent the fork entirely. The AI in Impossible mode never falls for fork setups, making it the perfect tutor for learning to defend against them.
Whether you are a parent teaching a child basic logic, a casual player looking for a quick mental break, or someone learning strategic pattern recognition, Tic Tac Toe offers something valuable. No sign-up, no download — just click and play in your browser. For the dedicated vs-AI landing with Easy to Impossible tactics, try Tic Tac Toe vs AI. Read our detailed Tic Tac Toe strategy guide for a complete breakdown of openings, forks, and defensive play.
Play Tic Tac Toe instantly in your browser with no sign-up. Challenge our minimax AI that plays perfectly on Impossible mode or let Easy mode give you room to practice fork setups and pattern recognition.
Tic Tac Toe on a 3x3 grid is the simplest game that teaches fork creation, blocking, and pattern recognition. Players take turns marking X and O — connect three in a row to win. Despite its solved status, the strategic depth of fork defense keeps the game relevant for players of all ages.
Explore more strategy games on our Games Hub.