In a tic-tac-toe game, a winning line can go through each layer of the three boards (in addition to the standard winning lines in any 2D plane of a single board). Two players play on this 3-layer board with normal tic-tac-toe rules.
Is it possible to tie in this version of tic-tac-toe?
It is
's turn.
can win by filling in the Top NW space. The winning line will go through Top NW, Middle Center, and Bottom SE.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Relevant wiki: Tic Tac Toe
Suppose the game could end in a draw. Then each of the boards on each level must end in a draw. There are two non-ordered ways - that is, accounting for symmetries - for a normal 3 × 3 game of tic-tac-toe to end in a draw:
× O O O × × × O O × O O O × × × × O
Now consider a 3 × 3 × 3 game with each of the above cases as the bottom board. Let's work with the left board first. Consider the center space in the middle board: it must be either an X or an O. If it is an O, the middle row on the top board must have Xs on the left and right in order to avoid 3-in-a-rows between the three levels. Similarly, there must be Xs in the middle of the bottom row and on the left and right in the top row of the top level. (For the tables below, the left diagram will represent the bottom board, the center diagram will represent the middle board, and the right diagram will represent the top board.)
× O O O × × × O O − − − − O − − − − × × − − − × × × −
Then all the other spaces on the top level must be Os in order to block 3-in-a-rows on the top level:
× O O O × × × O O − − − − O − − − − × × O O O × × × O
Then the bottom corners of the middle board must be Xs in order to block vertical 3-in-a-rows. Also the bottom middle of the middle board must be an X to block diagonal 3-in-a-rows between the levels. But this forces there to be 3 Xs in a row! So we can't get a draw this way:
× O O O × × × O O − − × − O × − − × × × O O O × × × O
Now consider the possibility where we start with the same bottom level and the center square of the middle level is an X. Then we are forced to have 4 Os in the top level: the center, top center, and bottom corners.
× O O O × × × O O − − − − × − − − − − − O O O − − − O
Then we are forced to have Xs in the top level top corners, and bottom middle. Also we must have Xs in the middle level in the top, middle and bottom corners. But now there are 3 Xs in a row, shown in red: a top corner on the bottom level, the middle top on the middle level, and the opposite top corner on the top level.
× O O O × × × O O − − × × × − − − × × − O O O × × − O
Now let's consider the other draw board as the base. With an O at the center of the middle board, we are forced into the following positions:
× O O O × × × × O − − − − O − − − − × − − − − × × × −
↓ ⏐ ⏐
× O O O × × × × O O − − O O − O − − × − − − − × × × −
And with an X at the center of the middle board:
× O O O × × × × O − − − − × − − − − − O O O O − − − O
↓ ⏐ ⏐
× O O O × × × × O − − × − × × − − × − O O O O − − − O
Thus, by contradiction, there is no way for the game to end in a draw.
Edit: @Sean Lourette has pointed out in the comments that I have, indeed, missed a third way for a draw to happen in 3 × 3 tic-tac-toe:
O × O × × O O O ×
Taking that to be the bottom board and considering the case where there is an X in the center of the middle board, we are forced into the following positions:
O × O × × O O O × − − − − × − − − − O − − − O O − O −
↓ ⏐ ⏐
O × O × × O O O × − × − − × − − × − O − − − O O − O −
And with an O at the center of the middle board:
O × O × × O O O × − − − − O − − − − − × × × − − × − ×
↓ ⏐ ⏐
O × O × × O O O × − O − − O − − O − − × × × − − × − ×
A relevant theorem is the Hales-Jewett theorem , which states that "the higher-dimensional, multiplayer, n -in-a-row generalization of a game of tic-tac-toe cannot end in a draw, no matter how large n is, no matter how many people c are playing, and no matter which player plays each turn, provided only that it is played on a board of sufficiently high dimension H ". I'm not sure the case H = 3 would be "sufficiently high," however.