⭕Tic-Tac-Toe
Play Tic-Tac-Toe against the AI — normal and unbeatable hard mode
Your turn — tap an empty square
How to Use
You play × against the AI on a 3×3 board — first to get three in a row wins. Normal mode lets the AI slip up occasionally; Hard mode uses a perfect minimax strategy, so the best you can achieve is a draw. Who moves first alternates every game, and your record is saved locally.
FAQ
Can I beat the hard AI?
No — Hard mode plays a perfect minimax strategy. With flawless play from both sides Tic-Tac-Toe always ends in a draw, so holding a draw is already perfect play.
Does going first matter?
Yes, the first player has the advantage — center or corner openings are strongest. The game alternates who starts to keep things fair.
Are my results saved?
Yes. Your wins, losses, and draws accumulate in the browser's local storage and are still there next visit. Clearing browser data resets them, and they don't sync across devices.
What's the difference between Normal and Hard?
Hard AI plays a perfect strategy every move and theoretically never loses; Normal makes a random move about a quarter of the time, giving you real chances to win.
Who goes first, and can I change it?
You play X and start; after each game the first move automatically alternates to the AI. There's no manual toggle — start a New Game to move on.
Can I place a mark while the AI thinks?
No. The AI's turn shows a thinking indicator and locks the board. Wait for your turn marker, then tap an empty cell — tapping occupied cells does nothing.
More Games
- Tower of HanoiPlay Tower of Hanoi online free — the web version, no download needed. Choose 3–10 discs with animated move demos, undo/redo, hints and a one-click optimal solution walkthrough.
- FreeCellPlay FreeCell online free — no download, no install. Works with classic Windows deal numbers 1–32000, plus unlimited undo, double-tap auto-home and safe auto-play.
- Whack-a-Mole OnlineFree online whack-a-mole — no download. Easy/Normal/Hard, golden & swift moles, avoid bombs, combo multipliers
- Number SprintTap numbers 1…N in order as fast as you can — train focus and reaction
More in this series
- GomokuPlay Gomoku against the AI on a 15×15 board — undo supported, first to five in a row wins
- ReversiClassic Reversi / Othello vs AI — flank, flip, and dominate the board
- Connect FourFree online Connect Four: drop discs and connect four in any direction to beat the AI, with undo and stats, no download
- Dots and BoxesFree online Dots and Boxes: draw lines between dots, claim boxes to score and chain extra turns, beat the AI to the final score