Tic-Tac-Toe Online

The classic game for two — free, in your browser, no registration

4 modes Smart AI With friend Mobile
Player 1 0
vs
Player 2 0

How to Play

1

Choose a mode

Three AI difficulty levels or play with a friend on one device

2

Make your move

Tap an empty cell — you play as X and always go first

3

Build a line

Three symbols in a row horizontally, vertically, or diagonally — you win

4

Play again

Scores persist between rounds — set up a tournament with friends

Why our game?

4 difficulty levels

From easy to expert — the AI at maximum level uses the minimax algorithm with full search and plays flawlessly. On easy, it intentionally makes mistakes to keep things fun for beginners.

Play with a friend

Pass the device to a friend or play together on one screen. No registration, no waiting — just pick the mode and start a game right away.

Works everywhere

Fully responsive design: phone, tablet, laptop, or large monitor. The game adapts to any screen and works equally well with mouse and touch.

Lightning fast

Pure JavaScript with no heavy frameworks. The page loads instantly, and the AI calculates its response in milliseconds right in your browser.

Score tracking

Scores are automatically saved between rounds — organize a real tournament with friends! First to 10 wins?

Modern design

Beautiful interface with smooth animations, dark mode, and support for 16 languages. Pleasant to play and pleasant to look at.

Tic-Tac-Toe — History and Strategy

Ancient origins

Tic-Tac-Toe is one of the oldest strategy games. Traces of similar games were found on temple tiles in ancient Egypt (around 1300 BC). Romans played Terni Lapilli — a game with three tokens each on a 3×3 board.

The math behind it

The board has 19,683 possible positions and 255,168 distinct games. In 1952, Alexander Douglas created OXO — one of the first computer games ever — on the EDSAC computer.

Perfect strategy

With optimal play from both sides, the result is always a draw — proven by game theory. The key tactic is the "fork": a position with two threats at once. Start with the center, take corners.

Play for free

On our site — four modes, AI powered by the minimax algorithm, and play with a friend. No registration, any device. Try to beat the unbeatable AI!

Frequently Asked Questions

How do I play tic-tac-toe online?

Open the homepage — the game board loads automatically. Select a mode from the dropdown menu: play with a friend on one device, or against the AI (easy, medium, or hard). Click on empty cells to make your move. No registration or download required — just open the site and start playing.

Is the game really free?

Yes, the game is completely free with no restrictions whatsoever. There are no hidden fees, in-game purchases, or premium features. All four game modes are available to every visitor without registration. We believe classic games should be accessible to everyone.

What game modes and difficulty levels are available?

There are four modes. "Easy" — the AI frequently makes random moves and intentionally blunders, perfect for kids and beginners. "Medium" — the AI plays reasonably well but occasionally makes mistakes, great for practice. "Hard" — the AI uses the minimax algorithm and plays mathematically flawlessly, it's impossible to beat. "Play with friend" — two players take turns on the same device.

Can you beat the AI on hard difficulty?

No, on hard difficulty the AI plays perfectly — this is mathematically proven. The minimax algorithm calculates every possible outcome of the game to the very end and always chooses the optimal move. The best result you can achieve against it is a draw. If you can consistently draw against the hard AI, you're playing at the level of perfection!

Does the game work on mobile devices?

Yes, the site is fully responsive and optimized for all device types. The game board automatically adjusts to your screen size — from small smartphones to large monitors. Cell taps work equally well with both mouse and touchscreen. You can even add the site to your phone's home screen and use it like a native app.