X
Player 1
YOUR TURN
O
Player 2
⟳ AI is thinking...
X WINS!
Congratulations
// Controls
- Click any empty cell to place your mark
- Get 3 in a row — horizontal, vertical, or diagonal — to win
- 2 Player: X goes first, then O alternates
- AI Mode: You play X, AI plays O
- Hard AI uses Minimax — it never loses