Tic Tac Toe

single‑file edition
Vs AI

X to move

🏆 X: 0 🏆 O: 0 🤝 Draws: 0

How to play

  1. Click any empty square to place your mark.
  2. Three in a row (horizontally, vertically, or diagonally) wins.
  3. Use Vs AI to toggle computer opponent (AI always plays O).
  4. Swap Starter alternates who begins the next round.
  5. New Game clears the board; scores persist.

Pro tip: The AI uses minimax, so if you don’t lose… you played perfectly 😉