⭕Tic-Tac-Toe

Play Tic-Tac-Toe against the AI — normal and unbeatable hard mode

Wins
0
Losses
0
Draws
0

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.