Back to the blog

Games

Ultimate tic-tac-toe: think about where you send them.

Every move in ultimate tic-tac-toe is also a choice of where the other player goes next. How to use that, and how the computer here chooses its moves.

By 4 min read

An ultimate tic-tac-toe board: nine small boards in a big one, two of them won and shown with a large mark, and the board the next player must play in outlined in colour

In ultimate tic-tac-toe a good square in a small board can be a bad move, because of where it sends the other player. Strong players think about both at once.

Do not send them where they can win.

Before you play a square, look at the board it sends the other player to. If they have two in a line there, you may be handing them that board. If that board is won or full, you are letting them play anywhere, which is usually a gift.

The centre board matters most.

As in the small game, the centre of the big board is on the most lines. Winning the centre board, and the corners, opens more ways to three in a row than the edges do.

How the computer here thinks.

It uses Monte Carlo tree search: from the board as it is, it plays many games to the end with random moves, keeps a tree of the moves that did best, and plays the one it tried most. Hard plays five thousand such games before each move, takes every win and never hands you a win at once. Nobody has worked out the whole game, so no computer here is called unbeatable.

Further reading

Topics: ultimate tic tac toe strategy · how to win ultimate tic tac toe · ultimate tic tac toe tips · ultimate tic tac toe ai · ultimate tic tac toe online

A little less theory. A little more doing.

Try it on your own terms, with a free browser tool.

Try the tool