Ludozio
Games · Board · Tic-Tac-Toe

Tic-Tac-Toe

Time 0:00 Moves 0

How to play Tic-Tac-Toe

Tic-Tac-Toe pits your X marks against the computer's O marks on a 3 by 3 grid. You move first, and the first to line up three of your marks wins. Three levels set the computer's strength, from random play to flawless.

  1. Take turns placing your marks Click an empty cell to drop an X. The computer answers by placing an O on a free cell, then it is your turn again. You keep alternating until the game ends.
  2. Line up three marks to win The goal is to get three of your X marks in a row, in a column or along one of the two main diagonals. The first player to complete such a line wins the game.
  3. Block the computer before it lines up Watch its O marks: as soon as it has two in a row with an open cell at the end, it threatens to win. Place your X on that cell to cut the line short.
  4. A full grid with no line is a draw If all nine cells fill up without either player making a line of three, the game is a draw. Nobody scores, and you can start a fresh grid right away.
Full rules

Tic-Tac-Toe is played by two on a 3 by 3 grid. You play the X marks, the computer plays O, and you move first.

On your turn, click an empty cell to place your mark. The goal is to line up three of your marks in a row in any direction: a row, a column or one of the two main diagonals. The first to make a line wins; if all nine cells fill with no line, the game is a draw.

Three levels set how hard the computer plays. On easy it makes a random legal move. On medium it takes an immediate win or blocks yours, otherwise it plays at random. On hard it searches the whole game tree and plays perfectly: at best you can only force a draw. Undo to take a move back, or ask for a hint to see the best move.

Playing tips
Take the centre, then a corner

The centre cell belongs to four possible lines, more than any other square. Open there when you can, then grab a corner: corners sit on more lines than the edges do.

Create a double threat

Look for a move that sets up two lines at once, a fork. The computer can only block one of them, so you complete the other on your next turn.

Always block two in a row

Before you think about attacking, check whether the computer is one move from winning. If it is, closing its line is your top priority, even if it delays your own plan.

Against perfect play, aim for a draw

Tic-Tac-Toe is a solved game: two flawless players always end level. On the hard level, do not chase a win at any cost; just play without mistakes to secure the draw.

Frequently asked questions

Can you always avoid losing?

Yes. Tic-Tac-Toe is fully solved: if you play without mistakes, you can never lose. Against a perfect opponent the game ends in a draw at worst, and you win the moment it slips up.

Do the computer levels really differ?

Yes, they change how strong the opponent is. On easy the computer plays a random move. On medium it grabs an immediate win and blocks yours, otherwise it plays at random. On hard it searches the whole game tree and plays perfectly.

Do you need an account to play?

No. There is no account and no sign-up. You open the page and start playing straight away, with no username or password.

Can you play offline?

Yes. Once the page has loaded, Tic-Tac-Toe runs entirely in your browser. You can keep playing even if your connection drops.

Is there a daily puzzle?

No. Tic-Tac-Toe is played against the computer, with no daily challenge: every game starts from an empty grid. Replay as many times as you like, whenever you like.

Who moves first?

You always move first, with the X marks. That small first-move edge helps you set the pace, especially if you open on the centre cell or on a corner.

Come back tomorrow Five puzzles a day, the same for everyone. See today's five
This grid
LevelMedium