Tic Tac Toe
Play classic Tic Tac Toe against an unbeatable AI. Try to beat the computer!
About Tic Tac Toe
Tic Tac Toe (also called Noughts and Crosses, or Xs and Os) is one of the oldest strategy games in the world, with roots tracing back to a game played in ancient Egypt and a version popular with Roman soldiers called Terni Lapilli. The modern 3×3 grid became standard in the 19th century and has been a fixture of notebooks and chalkboards ever since. Despite its simple rules, Tic Tac Toe is a "solved" game — with perfect play from both sides, every match ends in a draw — which makes it a genuinely useful way to practice basic strategic thinking: reading forks, blocking double threats, and controlling the center and corners.
This version pits you against an AI opponent with three distinct difficulty levels. Easy mode makes deliberate mistakes so newcomers and kids can win and build confidence. Medium mode plays solid but beatable moves. Hard mode uses a minimax algorithm to play perfectly — it will never lose, so your best realistic outcome is a draw. You can also hand the phone to a friend and play locally, taking turns on the same screen, which is how most people first learned the game. Because a full match takes well under a minute, it's the kind of game that fits into a two-minute wait at a bus stop without ever losing your place.
How to Play
- 1Tap an empty cell to place your mark (X)
- 2The AI will respond with its move (O)
- 3Get three in a row — horizontally, vertically, or diagonally — to win
- 4If all cells fill up with no winner, the game is a draw
- 5Choose difficulty: Easy, Medium, or Hard before starting
Tips & Strategy
- Take the center square first if it's open — it's part of the most winning lines (4 of 8).
- If your opponent takes the center, take a corner rather than an edge — corners sit on more potential winning lines.
- Watch for a "fork": a move that creates two winning threats at once. Blocking one still lets your opponent win with the other.
- On Hard mode, aim for a draw rather than a win — the AI plays perfect minimax and won't make mistakes.
- Playing second? Responding to the center and corners first is the standard way to guarantee at least a draw.
Frequently Asked Questions
Can Tic Tac Toe be won every time?
No — with perfect play from both sides, Tic Tac Toe always ends in a draw. The game is "solved," meaning every position has a known best outcome. You can only win if your opponent makes a mistake.
Is the AI opponent beatable?
Easy and Medium difficulty make intentional mistakes and can be beaten. Hard difficulty uses a perfect minimax algorithm and will never lose — your best possible result against it is a draw.
Can I play against a friend instead of the AI?
Yes. Pass-and-play mode lets two players take turns on the same device, just like the original pen-and-paper game.
What's the best opening move?
Taking the center square gives you the most paths to a winning line. If the center is already taken, a corner is the next best choice.
