XO Battle

Tic Tac Toe

Classic X and O — play vs unbeatable AI or challenge a friend. Can you beat the perfect minimax algorithm?

EasyStrategyClassicMultiplayer

Classic X and O — can you beat the AI?

🕹️How to Play

  1. 1Choose your mode: vs Computer (AI) or vs Friend (same device).
  2. 2X always goes first.
  3. 3Tap or click any empty square to place your mark.
  4. 4Get 3 in a row — horizontally, vertically, or diagonally — to win.
  5. 5If all 9 squares fill with no winner, the game is a draw.

📋Rules

  • Players alternate turns — X then O.
  • First player to get 3 in a row wins.
  • Hard AI uses the perfect minimax algorithm — it cannot be beaten, only drawn.
  • Scores persist until you click New Game.
  • In vs Friend mode, both players share the same device.

💡Pro Tips

  • Always take the center square (position 5) if it is available.
  • Corners are more powerful than edges — control the corners.
  • Watch for "fork" opportunities: a setup where you threaten to win in two ways at once.
  • Against the Hard AI, your only realistic goal is a draw — focus on blocking forks.

ℹ️About

Tic Tac Toe is one of the oldest strategy games in recorded history, with origins traced back to ancient Egypt around 1300 BC where versions of the game have been found carved into stone. Despite its deceptively simple rules, the game has a perfect mathematical solution. When both players play optimally, every game ends in a draw — meaning the best you can ever hope to achieve against our Hard AI is a tie.