About the Game

The classic X and O game! Get three in a row before the AI across 3 difficulty levels — from random to unbeatable.

5+ yearsLogic#velha#lógica
Screenshots
Jogo da Velha screenshot

Educational Benefits

  • 1Perfect introduction to strategic thinking
  • 2Develops anticipatory reasoning
  • 3Quick and dynamic matches for all ages
  • 4Great starting point for logic games

How to Play

The board is a 3×3 grid. You play as ✕ and always go first; the AI plays as ○. Each turn, tap or click any empty cell to place your mark. The goal is to form a line of three ✕ in a row — horizontal, vertical or diagonal — before the AI forms its line of three ○. If all 9 cells are filled with no winner, the game ends in a draw. There are three difficulty levels: Easy (the AI plays randomly, leaving many gaps), Medium (the AI mixes 40% random moves with 60% optimal moves — dangerous but exploitable) and Hard (the AI uses full Minimax and is mathematically unbeatable — the best possible result is a draw).

Tips & Strategy

  1. 1The center (cell 5) is the most powerful position — whoever takes it controls 4 of the 8 possible lines.
  2. 2Corners are the second-best positions. Occupying two opposite corners creates a fork trap.
  3. 3If the AI takes the center, play a corner — this limits its forking options.
  4. 4Create double threats (two pairs of ✕ at the same time): the AI can only block one, and you win with the other.
  5. 5On Hard mode, accept a draw as a win — defeating a perfect Minimax is beyond possible.

Frequently Asked Questions

How do you win Tic-Tac-Toe?

Mark 3 squares in a row (horizontal, vertical or diagonal) before your opponent, while blocking their attempts.

Can the AI be beaten?

On Easy, yes. On Hard, the AI plays perfectly — the best possible result is a draw.

How many difficulties are there?

Three: Easy (makes mistakes), Medium (plays well) and Hard (plays perfectly, never loses).

Is it good for young children?

Yes! From age 5 it is ideal — simple rules, fast matches and great for family play.