Home Casual GamesTic-Tac-Toe

Tic-Tac-Toe

Three in a row wins — play a friend, or try to outsmart a perfect AI.

About this game

Tic-Tac-Toe is the world's most universal pencil-and-paper game: two players take turns marking a 3×3 grid, and the first to get three of their marks in a row — horizontally, vertically or diagonally — wins. Simple as it looks, it's many children's first encounter with strategic thinking: threats, blocks, and forks.

This version offers two modes. In two-player mode, share the screen with a friend. In AI mode you face a flawless opponent powered by the minimax algorithm — it has examined every possible future of the game and will never lose. Your realistic best against it is a draw; achieving one every time means you've truly mastered the game.

How to play

  1. You are ✕ and move first; tap any empty cell.
  2. Get three in a row (any direction) to win.
  3. Block your opponent's two-in-a-row, or they'll win next turn.
  4. Switch between 'vs AI' and '2 Players' mode any time; the scoreboard tracks the session.

Tips & strategy

  • Best opening is a corner: it creates the most fork opportunities.
  • If your opponent opens in a corner, take the center — anything else can lose.
  • Watch for forks (two threats at once) — they're the only way anyone ever wins.
  • Against the AI, play for the draw and count it as a win.

Frequently asked questions

Can the AI be beaten?

No — it plays mathematically perfect moves via the minimax algorithm. Tic-tac-toe is a solved game: with perfect play by both sides, every game is a draw.

Why learn a game that always draws?

Because humans aren't perfect. Learning why it draws — threats, blocks, forks — is a miniature course in game theory that transfers to far deeper games.

Who moves first, and does it matter?

✕ moves first. First player can never lose with correct play, and has more chances to win if the opponent slips.

More games you might like

Casual Games →