Tic Tac Toe
Classic 3×3 strategy game. Play against a friend or challenge the AI.
✕ X
0
Draw
0
O ○
0
X's turn
About Tic Tac Toe
Tic Tac Toe (also known as Noughts and Crosses) is one of the oldest and most universally recognized strategy games, played on a simple 3×3 grid. Despite its simplicity, it teaches core strategic concepts like forcing moves and drawing by symmetry. With perfect play from both sides, the game always ends in a draw - making the AI's Hard mode an ideal test of your logical thinking.
Controls
- Click / Tap a cell - Place your mark (X or O) on that cell
- New Game button - Start a fresh round (scores are preserved)
- Mode buttons - Switch between 2 Players (local) and vs AI
- Difficulty buttons - Easy (random AI), Medium (blocks wins), Hard (minimax - unbeatable)
How to Play
- X always goes first.
- Click any empty cell to place your mark.
- Get 3 in a row horizontally, vertically, or diagonally to win.
- If all 9 cells are filled with no winner, it's a draw.
- In 2 Players mode, two people take turns on the same device.
- In vs AI mode, you play as X against the computer (O).
- Hard AI uses the minimax algorithm - it is theoretically unbeatable. Your best result is a draw.
Frequently Asked Questions
Yes. Select AI opponent mode and choose a difficulty level. The hardest AI uses the minimax algorithm and is unbeatable - the best you can do is force a draw.
With perfect play from both sides, Tic Tac Toe always results in a draw. Winning is only possible when the opponent makes a mistake. This is why the hardest AI can never be beaten.
Yes. Select 2-Player mode and take turns clicking on the board. Player X always goes first.
Click the Restart or New Game button to clear the board and start a fresh game. The current score tracker resets only when you reload the page.