← Play in PhoneThe classic grid · noughts & crosses

Tactical

Tic-Tac-Pro

Minimax AI3 board sizesUnbeatable
0You
0Draws
0AI
0Streak
0Best

You play X and the computer plays O. Take turns placing a mark on an empty square. The first to fill a whole line wins, and a line can go across, down or diagonally. Who goes first changes every round, and you get one hint per game. On the 3x3 board the Pro computer never loses, so a draw there means you played perfectly.

Line lens

Explore every row, column and diagonal that can win through a square. A route containing both X and O is blocked.

All Games

Three board sizes, three AI levels

Plain 3x3 noughts and crosses is a forced draw with correct play, so this version adds two larger boards. The 4x4 grid needs four in a line, and the 5x5 grid also needs four, which means a player can win in the middle of the board without touching the edges. Bigger boards give the first mover more room and make draws much rarer.

On the Pro setting the computer uses minimax with pruning. On 3x3 it never loses, so a draw is the best you can hope for and the game says so when you get one. Medium throws in a random move about three turns in ten, and Easy plays mostly at random. Who moves first alternates every round so neither side keeps the opening, and each game offers a single hint.

Under the board, the Line lens lets you choose a square and see every row, column and diagonal that could still produce a win through it. Lines already containing both X and O are shown as blocked. Win, draw and loss counts, current streak and best streak are kept separately for each combination of board size and level, and a Reset record button clears them.

Questions

Can I beat the Pro level on 3x3?

No. It plays perfectly there, so the best result is a draw. Try 4x4 or 5x5 for a game with real winning chances.

Why does the computer sometimes go first?

The opening alternates each round. The game tells you whose turn it is above the board.

Is the hint limited?

Yes, one per game, and it points at the move the engine ranks best for you.