X · O Tic Tac Toe

Game Mode
Board Size
X
Press "New Game" to start

Scoreboard

Player X
0
Draws
0
Player O
0

How to Play

🎯 Objective

Be the first player to get N pieces in a row — horizontally, vertically, or diagonally. N equals the board size (3 for 3×3, 4 for 4×4, 6 for 6×6).

🕹️ How to Play

Players take turns placing their mark (X or O) on an empty cell.

Click any empty cell on the board to place your mark. In AI mode, the computer responds automatically.

📐 Board Sizes
  • 3×3 Classic — the original. First to 3 in a row wins.
  • 4×4 Advanced — more strategy. First to 4 in a row wins.
  • 6×6 Pro — large board with many possibilities. First to 6 in a row wins.
🤖 AI Difficulty
  • 😊 Easy — makes random moves. Great for beginners.
  • 🎯 Medium — blocks your threats but misses some strategies.
  • 🔥 Hard — plays near-perfectly using Minimax. Tough to beat!
💡 Tips
  • On 3×3, always take the center square if available.
  • Create two threats at once so the opponent can only block one.
  • Watch the board for opponent winning threats and block immediately.
  • Try the larger boards for a fresh challenge once you can beat the AI!