⭕ Tic Tac Toe

Three in a row wins — play vs AI or challenge a friend!

Mode:
Size:

👥 Player vs Player · 3 × 3

X Wins
0
Draws
0
O Wins
0
X's turn

Click / tap a cell to place your mark · Scores are saved automatically

⭐ Rate this game

📖 How to Play Tic Tac Toe tap to expand

3×3 Board: Get 3 in a row (horizontally, vertically, or diagonally) to win.
5×5 Board: Get 4 in a row to win — more room for strategy!

👥 PvP: Two players take turns on the same device.
🤖 Easy AI: The AI makes random moves — great for beginners.
🧠 Hard AI: Uses the minimax algorithm on 3×3 — it is unbeatable! On 5×5 it uses smart heuristics.

Winning cells are highlighted in pink. Scores for X wins, O wins, and draws are saved in your browser.