Tiertac

3D tic-tac-toe strategy

Last updated: November 23, 2026

The key to 3D tic-tac-toe is that some squares sit on many more lines than others. Claim those squares early, make two threats with one move, and block every line that is one piece from finishing. The tips below explain how that works on each Tiertac board.

The line counts on this page come straight from the geometry of the cube: they count how many possible winning lines pass through a square. You can check any of them by turning the cube in the game.

Three ideas that win games

1. Play where the lines cross

Every square belongs to several possible lines. A square on many lines gives you many ways to build and takes many ways away from your opponents. When a line has to run the full width of the cube (3×3×3, 4 in a row on 4×4×4, or 5 in a row on 5×5×5), the squares on the cube's long diagonals, the lines that run from a corner of the top board through the middle of the cube to the opposite corner of the bottom board, are among the strongest. When the line is shorter than the cube is wide, the corners lose that strength and the squares nearest the middle of the cube are the strongest. In both cases the very center of an odd-sized cube is the strongest square of all.

2. Make a fork: two threats with one move

A threat is a line that needs just one more of your pieces. A fork is a move that creates two threats at once. Your opponent can block only one of them, so you complete the other on your next turn. Because each square in a cube lies on so many lines, forks come up far more often than in ordinary tic-tac-toe, and building one is the surest way to win.

3. Check every direction before you move

Before each move, ask two questions: can I finish a line right now, and can anyone else finish one on their next turn? If you can win, win. If someone else can, block that square. The lines people miss are the ones that run down through the stack, so turn the cube to look at it from the side.

Strategy for the 3×3×3 board

On the 3×3×3 cube, take the center square of the middle board if you can. It sits on 13 of the 49 winning lines, more than a quarter of them.

Lines through each square, 3×3×3 board (49 lines in all)
SquareLines through it
Center of the middle board13
Corners of the top and bottom boards7 each
Centers of the top and bottom boards5 each
Edge middles of the middle board5 each
Edge middles of the top and bottom boards4 each
Corners of the middle board4 each

Strategy for the 4×4×4 board

The 4×4×4 cube has no single center square. Instead, the middle four squares of the two middle boards form a block of eight inner squares, and how strong they are depends on the line length you choose.

Three in a row on 4×4×4

With 3 in a row to win, the eight inner squares are by far the best: each is on 20 of the 224 lines.

Lines through each square, 4×4×4 board, 3 in a row (224 lines in all)
SquareLines through it
Middle four squares of the two middle boards20 each
Middle four squares of the top and bottom boards, and edge middles of the two middle boards11 each
Edge middles of the top and bottom boards, and corners of the two middle boards8 each
Corners of the top and bottom boards7 each

Short lines make threats appear quickly. Two of your pieces side by side with an empty square at one end is a threat; with empty squares at both ends it is two threats, and only one can be blocked. Expect forks within the first few moves, and look for moves that block one threat while making one of your own.

Four in a row on 4×4×4

With 4 in a row to win, 16 squares (the eight corners of the cube and the eight inner squares) are on 7 lines each; all the others are on only 4.

Those 16 squares are exactly the squares on the cube's four long diagonals: the corners of the top and bottom boards, and the middle four squares of the two middle boards. Control of them decides most games. Four in a row on a 4×4×4 cube is the classic game known as Qubic. It has been shown, with the help of a computer search, that with two players the first player can always force a win, but the winning plan is far too long to memorize, so in practice good blocking still wins games.

Strategy for the 5×5×5 board

On the 5×5×5 cube, the center square of the middle board is the strongest square at every line length: it is on 39 lines with 3 in a row, 26 with 4 in a row, and 13 with 5 in a row.

The 5×5×5 board at each line length
In a row to winWinning linesLines through the centerLines through a corner of the cube
3 in a row603397
4 in a row302267
5 in a row109137

Playing with three or four players

With three or four players, block the player who will move soonest first, because they are the first who can complete a line.

Getting better against the computer

In Solo vs AI you can play against 1 to 3 computer opponents, each set to Easy, Medium or Hard. The computer players run on your own device.