Back to all tools

Tic Tac Toe

Classic X and O. Play against a friend or challenge the AI on Easy, Medium or Hard.

No files are stored on our servers

X

0

Draws

0

O

0

X's turn

How to use

  1. 1

    Choose Player vs Player or Player vs AI mode.

  2. 2

    Click any square to place your mark — X always goes first.

  3. 3

    Get three in a row to win. Beat the AI on Hard if you can!

Free Tic Tac Toe Game Online — Play vs AI or a Friend

Play Tic Tac Toe free online against an AI or a friend on the same device. Classic 3x3 grid, instant play, no signup required.

Skycally's Tic Tac Toe lets you play the classic 3×3 grid game against a smart AI opponent or a friend on the same device. Choose X or O, click any empty cell to place your mark, and try to get three in a row — horizontally, vertically, or diagonally — before your opponent does.

The AI uses a minimax algorithm to play optimally — it never makes a strategic mistake. Against a perfect AI, the best outcome for a human is a draw. This makes Tic Tac Toe a great way to understand game theory: with optimal play from both sides, the game always ends in a draw, making it a classic example of a 'solved game' in mathematics.

Two-player mode lets two people play on the same device, taking turns — perfect for a quick game with a friend or family member. The score tracker keeps a running tally of wins, losses, and draws across multiple rounds so you can have a proper match.

Tic Tac Toe has been played for thousands of years under various names — it appears in ancient Egypt and was known as 'noughts and crosses' in the UK. The first known computer implementation was OXO, created by Alexander Douglas in 1952 as part of his PhD thesis on human-computer interaction — making it one of the earliest video games ever created.

Frequently Asked Questions

How do I play Tic Tac Toe?

Click any empty cell to place your mark (X or O). Get three of your marks in a row — horizontally, vertically, or diagonally — to win. If all 9 cells are filled with no winner, the game is a draw.

Can I play against a friend?

Yes. Select 2 Player mode and take turns clicking cells on the same device.

How strong is the AI?

The AI uses the minimax algorithm and plays perfectly — it never makes a strategic mistake. The best result against the AI is a draw with optimal play.

Can Tic Tac Toe always end in a draw?

Yes. With perfect play from both sides, Tic Tac Toe always ends in a draw. This is why it's called a 'solved game' — the optimal outcome is determined by mathematics.

Does the game track my score?

Yes. A score counter tracks wins, losses, and draws across multiple rounds in the current session.

Who goes first?

X always goes first by default. You can choose whether to play as X or O before the game starts.

Can I undo a move?

No — once placed, marks are permanent. Start a new game to try a different strategy.

Does this work on mobile?

Yes. The grid is touch-friendly and scales to fit any screen size.

You might also like

Other tools you might find useful.