Toolstia / Tic-tac-toe

tic-tac-toe

Play noughts and crosses against the computer. Choose whether you go first, pick a perfect or easy opponent and keep score across games.

Your move.

0Your wins
0Computer wins
0Draws

On perfect skill the computer plays flawlessly, so the best you can do is draw. Try the random setting for an easier game.

How it works

  1. Choose X or O and the skill level.
  2. Click a square to play.
  3. Start a new game to play again.

Rules

Take turns placing your mark. The first to get three in a row, across, down or diagonally, wins. A full board with no line is a draw.

Perfect play

The computer on perfect skill never loses, so the best you can do is draw. It checks every possible game before each move.

Easy mode

On random skill the computer plays any free square, so you can win often.

Winning move

Winning squares are highlighted when a line is made.

Questions

Can I beat the perfect computer?

No. With best play both sides draw.

Who goes first?

X always starts. Choose O if you want the computer to open.

Is my score stored?

Everything happens in your browser, and nothing you enter is sent anywhere.