Tic-Tac-Toe

Classic Tic-Tac-Toe against an unbeatable AI or a friend. Three difficulty levels — can you beat the minimax AI?

Runs 100% in your browser — nothing is uploaded.
Your turn
W 0D 0L 0

You are X — AI is O. Record is per difficulty.

How to use

  1. 1
    Choose mode

    Pick Easy, Medium, or Hard AI — or 2 Player for local multiplayer.

  2. 2
    Take turns

    Click any empty cell to place your mark. You are X, AI is O.

  3. 3
    Win condition

    Get three of your marks in a row — horizontal, vertical, or diagonal.

  4. 4
    Rematch

    Click New Game to play again. Your W/D/L record is tracked.

Frequently asked

Can I beat the AI on hard mode?

No — the hard AI uses minimax and plays perfectly. The best you can do is draw. Try medium for a beatable opponent.

What is medium difficulty?

Medium AI plays randomly about 40% of the time, so it makes occasional mistakes and can be beaten.

Can I play against another person?

Yes — select "2 Player" mode and take turns on the same device.

How are wins tracked?

Win/draw/loss record is saved per mode (vs AI easy/medium/hard and 2P) in your browser.

Related tools