Games

Tic Tac Toe

Quick answer

Tic Tac Toe is a two-player game on a 3 by 3 grid where players take turns placing X and O. The first to get three in a row, across, down or diagonally, wins. Play against an easy or hard computer, or with a friend on the same screen.

Found this useful? WhatsApp X LinkedIn

How it works

You play X and move first. On Hard, the computer uses the minimax strategy, which never loses, so the best result you can get is a draw. Easy mode plays random moves. Two-player mode lets two people share one device. A scoreboard tracks wins and draws.

Examples

ExampleWinning lineThree of your marks in any row, column or diagonal.
ExampleAgainst HardPerfect play from both sides always ends in a draw.

About Tic Tac Toe

Tic Tac Toe is the simplest strategy game there is, and a good first lesson in thinking a move ahead. This version offers an easy computer, an unbeatable hard computer, and a two-player mode on one device. On Hard the computer never loses, so the challenge is to avoid mistakes and secure a draw.

Why play Tic Tac Toe

  • A quick game with a friend.
  • Teaching children basic strategy.
  • Testing yourself against a perfect opponent.
  • Passing a few minutes.

Tips to win or draw

  • Start in the centre or a corner.
  • Always check for your opponent two-in-a-row and block it.
  • Look for moves that create two winning threats at once.
  • Against the hard computer, aim for a draw.

Common mistakes

  • Taking an edge square first.
  • Forgetting to block a line.
  • Expecting to beat the Hard computer.

Frequently asked questions

Can I beat the Hard computer?

No. On Hard it plays perfectly, so you can at best draw.

Who goes first?

You play X and move first. In two-player mode X starts.

What is a good opening move?

The centre or a corner gives the most winning chances.

How many players?

One against the computer, or two on the same device.

Written by Jasveer Raj, software engineer · Last updated 3 Nov 2026

Esc