Tick Tack Toe #9

Logic Level 1

In a 3 × 3 × 3 3 \times 3 \times 3 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 \(\color{red}\text{X}\)'s turn.  \(\color{red}\text{X}\) can win by filling in the Top NW space.  The winning line will go through Top NW, Middle Center, and Bottom SE. It is X \color{#D61F06}\text{X} 's turn. X \color{#D61F06}\text{X} can win by filling in the Top NW space. The winning line will go through Top NW, Middle Center, and Bottom SE.

Yes No

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.

6 solutions

Zach Abueg
Oct 16, 2017

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 3 \times 3 game of tic-tac-toe to end in a draw:

× O × × O × O × O O × × O × O O × O \begin{array}{c c c c c c c c c} \times & \text{O} & \times & & & & \times & \text{O} & \times \\ \text{O} & \times & \text{O} &&&& \text{O} & \times & \times \\ \text{O} & \times & \text{O} &&&& \text{O} & \times & \text{O} \\ \end{array}

Now consider a 3 × 3 × 3 3 \times 3 \times 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 × \begin{array}{c c c c c c c c c c c c c c c} \times & \text{O} & \times &&&&-&-&-&&&& \times & - & \times \\ \text{O} & \times & \text{O} &&&&-& \text{O} &-&&&& \times & - & \times \\ \text{O} & \times & \text{O} &&&&-&-&-&&&&-& \times & - \end{array}

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 \begin{array}{c c c c c c c c c c c c c c c} \times & \text{O} & \times &&&&-&-&-&&&& \times & \text{O} & \times \\ \text{O} & \times & \text{O} &&&&-& \text{O} &-&&&& \times & \text{O} & \times \\ \text{O} & \times & \text{O} &&&&-&-&-&&&& \text{O} & \times & \text{O} \end{array}

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 \begin{array}{c c c c c c c c c c c c c c c} \times & \text{O} & \times &&&&-&-&-&&&& \times & \text{O} & \times \\ \text{O} & \times & \text{O} &&&&-& \text{O} &-&&&& \times & \text{O} & \times \\ \text{O} & \times & \text{O} &&&& \color{#D61F06}{\times} & \color{#D61F06}{\times} & \color{#D61F06}{\times} &&&& \text{O} & \times & \text{O} \end{array}

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 \begin{array}{c c c c c c c c c c c c c c c} \times & \text{O} & \times &&&&-&-&-&&&& - & \text{O} & - \\ \text{O} & \times & \text{O} &&&&-& \times &-&&&& - & \text{O} & - \\ \text{O} & \times & \text{O} &&&&-&-&-&&&& \text{O} & - & \text{O} \end{array}

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 \begin{array}{c c c c c c c c c c c c c c c} \color{#D61F06}{\times} & \text{O} & \times &&&&-& \color{#D61F06}{\times} &-&&&& \times & \text{O} & \color{#D61F06}{\times} \\ \text{O} & \times & \text{O} &&&&-& \times &-&&&& - & \text{O} & - \\ \text{O} & \times & \text{O} &&&& \times &-& \times &&&& \text{O} & \times & \text{O} \end{array}

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 × \begin{array}{c c c c c c c c c c c c c c c} \times & \text{O} & \times &&&&-&-&-&&&& \times & - & \times \\ \text{O} & \times & \times &&&&-& \text{O} &-&&&& - & - & \times \\ \text{O} & \times & \text{O} &&&&-&-&-&&&&-& \times & - \end{array}

\Big \downarrow

× O × O O O × × O × × O × O × O × \begin{array}{c c c c c c c c c c c c c c c} \times & \text{O} & \times &&&& \color{#D61F06}{\text{O}} & \color{#D61F06}{\text{O}} & \color{#D61F06}{\text{O}} &&&& \times & - & \times \\ \text{O} & \times & \times &&&&-& \text{O} &-&&&& - & - & \times \\ \text{O} & \times & \text{O} &&&&-&-&-&&&&-& \times & - \end{array}

And with an X at the center of the middle board:

× O × O O × × × O O O × O O O \begin{array}{c c c c c c c c c c c c c c c} \times & \text{O} & \times &&&&-&-&-&&&& - & \text{O} & - \\ \text{O} & \times & \times &&&&-& \times &-&&&& \text{O} & \text{O} & - \\ \text{O} & \times & \text{O} &&&&-&-&-&&&& \text{O} & - & \text{O} \end{array}

\Big \downarrow

× O × O O × × × O O O × O × × × O O \begin{array}{c c c c c c c c c c c c c c c} \times & \text{O} & \times &&&&-&-&-&&&& - & \text{O} & - \\ \text{O} & \times & \times &&&&-& \times &-&&&& \text{O} & \text{O} & - \\ \text{O} & \times & \text{O} &&&& \color{#D61F06}{\times} & \color{#D61F06}{\times} & \color{#D61F06}{\times} &&&& \text{O} & - & \text{O} \end{array}

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 3 \times 3 tic-tac-toe:

O × O × × O O O × \begin{array}{c c c} \text{O} & \times & \text{O} \\ \times & \times & \text{O} \\ \text{O} & \text{O} & \times \end{array}

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 \begin{array}{c c c c c c c c c c c c c c c} \text{O} & \times & \text{O} & & - & - & - && \text{O} & - & - \\ \times & \times & \text{O} & & - & \times & - & & - & \text{O} & \text{O} \\ \text{O} & \text{O} & \times & & - & - & - & & - & \text{O} & - \end{array}

\Big \downarrow

O × O O × × O × × × O O O O × O \begin{array}{c c c c c c c c c c c c c c c} \text{O} & \times & \text{O} & & - & - & - && \text{O} & - & - \\ \times & \times & \text{O} & & \color{#D61F06}{\times} & \color{#D61F06}{\times} & \color{#D61F06}{\times} & & - & \text{O} & \text{O} \\ \text{O} & \text{O} & \times & & - & - & - & & - & \text{O} & - \end{array}

And with an O at the center of the middle board:

O × O × × × × O O × O O × × × \begin{array}{c c c c c c c c c c c c c c c} \text{O} & \times & \text{O} & & - & - & - && - & \times & \times \\ \times & \times & \text{O} & & - & \text{O} & - & & \times & - & - \\ \text{O} & \text{O} & \times & & - & - & - & & \times & - & \times \end{array}

\Big \downarrow

O × O × × × × O O O O × O O × × × \begin{array}{c c c c c c c c c c c c c c c} \text{O} & \times & \text{O} & & - & - & - && - & \times & \times \\ \times & \times & \text{O} & & \color{#D61F06}{\text{O}} & \color{#D61F06}{\text{O}} & \color{#D61F06}{\text{O}} & & \times & - & - \\ \text{O} & \text{O} & \times & & - & - & - & & \times & - & \times \end{array}


A relevant theorem is the Hales-Jewett theorem , which states that "the higher-dimensional, multiplayer, n n -in-a-row generalization of a game of tic-tac-toe cannot end in a draw, no matter how large n n is, no matter how many people c 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 H ". I'm not sure the case H = 3 H = 3 would be "sufficiently high," however.

I think you missed a third way for a 3x3 game of tic-tac-toe to end in a draw, where 3 of the corners are the same symbol. Row 1: OXO, Row 2: XXO, Row 3: OOX

Sean Lourette - 3 years, 7 months ago

Log in to reply

Thank you for pointing that out. I've edited my solution accordingly :)

Zach Abueg - 3 years, 7 months ago

The game ends in a draw when the players agree to walk away without taking another move. The solution offered is incomplete.

Mike Szakaly - 3 years, 7 months ago

Log in to reply

That is true but that is not the kind of game we are considering in this problem.

Agnishom Chattopadhyay - 3 years, 7 months ago
Anthony Lamanna
Oct 17, 2017

Another question stemming from this, is it possible to prevent a perfect logician from winning in just 4 of their turns if they had the first move and went in middle center to start the game?

No. Suppose Player 1 plays X in centre. Player 2 now plays O somewhere non-centre. Player 1 can now restrict the board to a 2d 3x3 board with no O's on it and an X in the centre. Which is equivalent to starting a normal game with 2 free moves to start. Clearly this is always winnable, as long as Player 1 forces a move from Player 2 which is not colinear to the first O

Aaron Zolnai-Lucas - 3 years, 7 months ago
Bryan Carter
Oct 17, 2017

Once a player such as X in the example given has played a winning line the game is over so there is no opportunity for Y to play on and complete a second wining line.

Bryan J Carter

This is not a proper solution. We do not want to ask if X has a winning strategy, but if there is a sequence of possible moves that will result a draw.

Agnishom Chattopadhyay - 3 years, 7 months ago

Log in to reply

better solution :

First Observation : given that 4 corners can't result in the same symbol.

Second Observation : that the top and bottom table must be alternating (they are the complete opposite), this is caused by PHP and one harsh observation about the symbol at the middle of the mid table.

from first observation ,you know that there will be 2 pair of same row/same coloumn that have different symbols on the bottom row. (x?o and o?x) from second observation, you know that their alternating pair at the top is (o?x and x?o)

the problem is on the mid row, you can't put o or x in the middle. therefore draw can't be achieved.

A Steven Kusuman - 3 years, 7 months ago
John Winkelman
Oct 22, 2017

I did somewhat like Zach, but a bit quicker. I showed that if the centre of the second layer is X then two X's adjacent on an edge will not lead to a draw. If the centre is O then the same principle applies to the O's. Details omitted! I also thought about letting X be 1 and O be 0. Let each square be a binary variable. We arrive at 36 sums over 27 variables for the rows, columns and diagonals. The sums must be 1 or 2 for a draw to occur. I couldn't take it further, maybe one of your readers can!

Terry Smith
Oct 21, 2017

I wrote software to run 3d tictactoe games recursively. 800,000 games later - no ties. I took a flyer and selected 'No'.

Syrous Marivani
Oct 19, 2017

Once a player put an x or circle, the end result by putting an x or circle can only mean one of the players will win and not both.

Sorry, why must one of the players win?

Agnishom Chattopadhyay - 3 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...