Tic-Tac-Toe

Get three in a row before the computer does. You play X and always go first.

You 0Draw 0CPU 0

Tap an empty square to place your X.

How to play

The board has nine squares. You are X and the computer is O. Take turns placing your mark. The first player to get three marks in a row, across, down or diagonally, wins. If all nine squares fill up with no winner, the game is a draw.

Strategy for a perfect game

Why the hard mode is hard

Tic-tac-toe is a solved game: if both players play perfectly, every game ends in a draw. Our hard mode looks ahead at every possible move, so it is very difficult to beat. It does make an occasional human-like slip, so keep trying. The easy mode plays at random and is great for children learning the game.

A very old game

Games of three in a row are thousands of years old and have been played on boards scratched into stone and drawn in sand. Tic-tac-toe is often one of the first strategy games a child learns, and it is a lovely way to teach thinking one move ahead.

Fun facts about tic-tac-toe

Frequently asked questions

Can I beat the hard mode?

It is very difficult, because it checks every move. It does make an occasional human-like slip, so a well-built fork can sometimes win.

What is the best first move?

The center or a corner. Both are part of more winning lines than an edge square.

Why do so many games end in a draw?

Once both players know to block and to take the center or corners, there is no forced win. That is what makes forks so important.

You might also like

Play Sudoku →