3D tic-tac-toe strategy
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.
| Square | Lines through it |
|---|---|
| Center of the middle board | 13 |
| Corners of the top and bottom boards | 7 each |
| Centers of the top and bottom boards | 5 each |
| Edge middles of the middle board | 5 each |
| Edge middles of the top and bottom boards | 4 each |
| Corners of the middle board | 4 each |
- The first move matters most. With careful play, the player who moves first and takes the center can always force a win on this board. It is a short, sharp game.
- There are no draws. However the 27 squares are filled, one of the two players always has a line, so every game on this board has a winner.
- If the center is gone, take corners of the top and bottom boards. They are on 7 lines each, and two of them together with the center make one of the cube's long diagonals, so they are also the squares to deny your opponent.
- Block at once. Every other square shares a line with the center, so once someone holds it, each piece they add can make a new threat. Answer every threat straight away.
- The first move comes back to you. In Tiertac the player who lost opens the next game, so after a loss you get the first move and the center.
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.
| Square | Lines through it |
|---|---|
| Middle four squares of the two middle boards | 20 each |
| Middle four squares of the top and bottom boards, and edge middles of the two middle boards | 11 each |
| Edge middles of the top and bottom boards, and corners of the two middle boards | 8 each |
| Corners of the top and bottom boards | 7 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.
- A line of four either lies flat on one board or has exactly one square on each of the four boards. Watch for an opponent quietly collecting the squares of one line spread across different boards.
- A line with one of your pieces and one of an opponent's in it is dead for both of you. Placing a piece in an opponent's half-built line is often a good move even before it becomes a threat.
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.
| In a row to win | Winning lines | Lines through the center | Lines through a corner of the cube |
|---|---|---|---|
| 3 in a row | 603 | 39 | 7 |
| 4 in a row | 302 | 26 | 7 |
| 5 in a row | 109 | 13 | 7 |
- Three in a row: with 603 lines on 125 squares, the middle of the cube is crowded with chances. Games are fast and full of threats. Play near the center and check every move for a block.
- Four in a row: the center is still worth 26 lines. A line of four can sit at either end of a row of five, so three of your pieces on the middle three squares of a row can be finished at either end: that is already two threats.
- Five in a row: every line runs the full width of the cube, just like 3 in a row on the 3×3×3 board. Apart from the center, the strongest squares are the 16 others on the cube's four long diagonals, with 7 lines each.
- Use the extra boards. With five boards, lines through the stack are easy to lose track of. Turn the cube regularly and look along each diagonal.
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.
- Turn order decides who must block. If a player makes a threat, the next player in turn order has the first chance to stop it. If that is you, do not count on someone later to do it.
- Two threats from two players. If two opponents each have a line one piece from finishing, block the one whose turn comes first. The other may still be blocked by someone who moves before them.
- Every piece blocks. Any piece in a line spoils it for everyone else, so your own building moves often double as blocks. Look for squares that do both.
- Stay out of the spotlight. A player with an obvious threat gets blocked by everyone. Building two quieter lines at once often works better than one loud one.
- Pick a fair line length. Shorter lines mean faster, more chaotic games; longer lines on the 5×5×5 cube give everyone more time to plan.
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.
- Start on Easy on the 3×3×3 board to get used to seeing lines through the stack.
- Move up a level when you are winning most of your games, and try the bigger boards once 3×3×3 feels easy.
- Mix the levels in a game with several computer opponents, for example one Easy and one Hard, to practice blocking with three or four players.
- Use your hints. After two losses in a row you get one hint per game. The hint always takes a winning square if there is one, and when an opponent is one move from winning it blocks whoever would win soonest, so it is a good way to learn which threats matter.
- Watch the win-probability bar. A sudden swing after a move usually means a threat or a fork has appeared.