⭕ Tic Tac Toe vs Computer

Wooden 3D tic-tac-toe game
Photo: Chenspec / Wikimedia Commons, CC BY-SA 4.0

Challenge the unbeatable AI — or play a friend. 3 difficulties, score tracking, works on mobile. Can you force a draw on Hard?

Your move — you are X
You / X: 0 Draws: 0 CPU / O: 0

💡 Hard mode is mathematically unbeatable — the minimax AI plays perfectly, so a draw is your best result. Warm up on Easy first!

📖 How to play

  1. You are X and always move first. Tap any empty square.
  2. Get 3 in a row — horizontally, vertically or diagonally — to win.
  3. Vs Computer: pick Easy (random), Medium (blocks & attacks) or Hard (unbeatable minimax AI).
  4. 2 Players: pass the device — X and O take turns.

❓ Frequently asked questions

Can you beat the unbeatable Tic Tac Toe AI?

No — on Hard the AI uses the minimax algorithm and plays every game perfectly, so the best you can achieve is a draw. If you want wins, try Easy or Medium.

How does the minimax AI work?

Minimax looks ahead at every possible future move, assuming both players play optimally. It then chooses the move with the best guaranteed outcome — a win if one exists, otherwise a forced draw. It can never be tricked.

Is Tic Tac Toe a solved game?

Yes. With perfect play from both sides it always ends in a draw. There are only 255,168 possible games — few enough for a computer to evaluate completely, which is exactly what Hard mode does.

Is my score saved?

Yes — wins, losses and draws are stored in your own browser (localStorage), so your tally survives refreshes. Nothing is sent to any server.

🔗 See also

Scrabble letter tiles on a board
🔤

Hangman

Guess the word before the hangman is complete — 4 categories, hints included.

Play →
People playing the Memory card game
🃏

Memory Match

Flip cards and match pairs — train your brain against the clock.

Play →
Hands holding a video game controller
🔢

2048

Slide and merge tiles to reach 2048 — the classic number puzzle.

Play →

Card photos: JIP / Wikimedia Commons, CC BY-SA 4.0 · Tilanus / Wikimedia Commons, CC BY-SA 3.0 · superanton / Wikimedia Commons, CC0

More games

Computer keyboard keys
🎮

Typing Speed Test — Free 1-Minute WPM Test, No Sign-Up

How fast can you type? Take a free typing speed test — 30, 60 or 120 seconds — with live WPM, accuracy, weakest-key…

Play →
Scrabble letter tiles on a board
🎮

Free Word Guess Game — 5-Letter Wordle-Style Puzzle

Play Word Guess free — a 5-letter Wordle-style puzzle with 6 tries, daily word, streaks and on-screen keyboard. No…

Play →
Scrabble letter tiles on a board
🎮

Wordle Unlimited — Free Endless 5-Letter Word Game (No Download)

Play Wordle Unlimited free: guess the hidden 5-letter word in 6 tries. Endless puzzles plus a daily challenge,…

Play →
Hands holding a video game controller
🎮

2048 — Free Online Number Puzzle Game

Play 2048 free online — slide and merge numbered tiles to reach the 2048 tile! Addictive number puzzle game, no…

Play →
Hands holding a video game controller
🎮

Air Hockey Game Online — Free, No Download

Play free air hockey online against the computer — 3 difficulty levels, smooth physics, touch + mouse controls, no…

Play →

Card photos: Kskhh / Wikimedia Commons, CC BY-SA 4.0 · JIP / Wikimedia Commons, CC BY-SA 4.0 · superanton / Wikimedia Commons, CC0

Share:
Disclaimer: The information and estimates on this page are for general guidance only and are not professional financial, legal or medical advice — always verify with official sources before acting. Photos on this page are copyright-free originals, credited to the photographer and source with the licence noted.