Editing 832: Tic-Tac-Toe

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 3: Line 3:
 
| date      = December 10, 2010
 
| date      = December 10, 2010
 
| title    = Tic-Tac-Toe
 
| title    = Tic-Tac-Toe
| image    = tic_tac_toe.png
+
| image    = Tic_tac_toe.png
 
| titletext = The only winning move is to play, perfectly, waiting for your opponent to make a mistake.
 
| titletext = The only winning move is to play, perfectly, waiting for your opponent to make a mistake.
 
}}
 
}}
  
A much larger version is available at https://xkcd.com/832_large.
+
==Explanation==
 +
Each map shows every possible combination of moves which will result in that side winning or tying. It assumes that X moves first, which is why the map for O has more possible move combinations and, therefore, more subdivisions.
  
==Explanation==
+
In what follows we will use numpad notation, i.e.:
In what follows we will use numpad notation for tic-tac-toe, i.e.:
 
 
  7|8|9
 
  7|8|9
 
  -+-+-  
 
  -+-+-  
Line 17: Line 17:
 
  1|2|3
 
  1|2|3
  
Each map shows every possible combination of moves which will result in that side winning or tying. It assumes that X moves first, and its optimal move is X7. Any corner would do, so X1, X3 and X9 are also optimal moves. The map for X has a big red X7 (650×650 pixels), and the 8 remaining grids have a smaller (210×210) black X7.
+
Note that only optimal moves are shown. This means that X only begins with X7, and all grids and subgrids in Map for X have an X in position 7. For example, you can't find a grid beginning with X2, because X2 is not an optimal move.  
 
 
The map for O has more combinations, because in this case X is not assumed to be optimal. All 9 subgrids have one big (210×210) black X and one big red O.
 
 
 
Note that only optimal moves are shown. For example, you can't find a grid beginning with X2 in Map of X, because X2 is not an optimal move.
 
  
In map for O you can find a 660×660 grid beginning with X2. Since the optimal answer is O5, you won't find X2, O8, for example.
+
In map for O you can find grids beginnig with X2. Since the optimal answer is O5, you won't find X2, O8, for example.
  
 
;Example 1
 
;Example 1
Line 32: Line 28:
  
 
Assume X used the center cell, X5. You as O must magnify the center cell in the 3×3 map for O. Better still, select that cell and delete everything else. Now you have a picture sized 670×670 pixels, with a big red O7 and a big black X5. You must move O7 this time.
 
Assume X used the center cell, X5. You as O must magnify the center cell in the 3×3 map for O. Better still, select that cell and delete everything else. Now you have a picture sized 670×670 pixels, with a big red O7 and a big black X5. You must move O7 this time.
O| |
 
-+-+-
 
  |X|
 
-+-+-
 
  | |
 
  
Assume X moves X9.  
+
Assume X moves X9. You select cell 9, which is 220×220 pixels. Look for the biggest red O, which is O1. You can see you blocked a winning move.
O| |X
 
-+-+-
 
  |X|
 
-+-+-
 
  | |
 
 
 
In your drawing program you select cell 9, which is 220×220 pixels. Look for the biggest red O, which is O1. You can see you blocked a winning move.
 
 
  O| |X
 
  O| |X
 
  -+-+-
 
  -+-+-
Line 52: Line 36:
 
  O| |
 
  O| |
  
Now X, naively, plays X3
+
Now X, naively, plays X3 and you select that cell in your editor, which is 73×73 pixels wide and looks like this
O| |X
 
-+-+-
 
  |X|
 
-+-+-
 
O| |X
 
 
 
You select cell 3 in your drawing program, which is 73×73 pixels and looks like this
 
 
  O| |X
 
  O| |X
 
  -+-+-
 
  -+-+-
Line 71: Line 48:
  
 
==Errors==
 
==Errors==
1) In Map for X, the grid for X7, O9, X1, O4, X3 (i.e. go to Map for X, select cell 9, and then select cell 4) shows the same picture for O5 and O6. Those pictures belong to O6.  
+
In Map for X, the grid for X7, O9, X1, O4, X3 (i.e. go to Map for X, select cell 9, and then select cell 4) shows the same picture for O5 and O6. Those pictures belong to O6. The correct pictures should be:
 
 
[[Image:Tic-Tac-Toe-X-1-8.png]]
 
 
 
The correct pictures should be:
 
 
  X| |O    X| |O
 
  X| |O    X| |O
 
  -+-+-    -+-+-
 
  -+-+-    -+-+-
 
  O|O|    O| |O
 
  O|O|    O| |O
 
  -+-+-    -+-+-
 
  -+-+-    -+-+-
  X|<font color=red><strong>X</strong></font>|X    X|<font color=red><strong>X</strong></font>|X
+
  X|X|X    X|X|X
  
2)&nbsp;In Map for X, the grid for X7, O1, X9, O8, X3  (i.e. go to Map for X, select cell 1, and then select cell 8) shows the same picture for O2 and O5. Those pictures belong to O2. The correct pictures should be:
+
In Map for X, the grid for X7, O1, X9, O8, X3  (i.e. go to Map for X, select cell 1, and then select cell 8) shows the same picture for O2 and O5. Those pictures belong to O2. The correct pictures should be:
 
  X|O|X
 
  X|O|X
 
  -+-+-
 
  -+-+-
Line 95: Line 68:
 
  O|O|X
 
  O|O|X
  
3)&nbsp;In Map for O, the grid for X8, O5, X2, O6 (i.e. go to Map for O, select cell 8, and then select cell 2) shows the same picture for X1 and X3. Those pictures belong to X3. The correct pictures should be:
+
In Map for O, the grid for X8, O5, X2, O6 (i.e. go to Map for O, select cell 8, and then select cell 2) shows the same picture for X1 and X3. Those pictures belong to X3. The correct pictures should be:
 
   |X|    \  /    |X|  
 
   |X|    \  /    |X|  
 
  -+-+-    \ /    -+-+-
 
  -+-+-    \ /    -+-+-
Line 102: Line 75:
 
  X| |X  /  \    |X|X
 
  X| |X  /  \    |X|X
  
4)&nbsp;In Map for O, the grid for X2, O5, X8, O4 (i.e. go to Map for O, select cell 2, and then select cell 8) shows the same picture for X7 and X9. Those pictures belong to X7. The correct pictures should be:
+
In Map for O, the grid for X2, O5, X8, O4 (i.e. go to Map for O, select cell 2, and then select cell 8) shows the same picture for X7 and X9. Those pictures belong to X7. The correct pictures should be:
 
  X|X|    \  /    |X|X  
 
  X|X|    \  /    |X|X  
 
  -+-+-    \ /    -+-+-
 
  -+-+-    \ /    -+-+-
Line 108: Line 81:
 
  -+-+-    / \    -+-+-
 
  -+-+-    / \    -+-+-
 
   |X|    /  \    |X|
 
   |X|    /  \    |X|
 
5)&nbsp;In Map for O, the grid for X6, O5, X4, O2 (i.e. go to Map for O, select cell 6, and then select cell 4) shows the same picture for X1 and X7. Those pictures belong to X1.
 
 
[[Image:Tic_Tac_Toe-O-6-4.png]]
 
 
The correct pictures should be:
 
X|<font color=red><strong>O</strong></font>|
 
-+-+-
 
X|O|X
 
-+-+-
 
  |O|
 
=====
 
\  /
 
  \ /
 
  X 
 
  / \
 
/  \
 
=====
 
  |<font color=red><strong>O</strong></font>|
 
-+-+-
 
X|O|X
 
-+-+-
 
X|O|
 
 
6)&nbsp;Typography coloring issue: in Map for O, X5, O7, X3, O1, X4, O6,  the O6 should be red to show that it's the latest move, instead of black.
 
 
7)&nbsp;Another typography coloring issue: in Map for O, X1, O5, X4, O7, X3, O2, X6, O9, X8,  the X8 is red, but in Map for O all X should be black.
 
 
8)&nbsp;In Map for O, there are eight "strategy" mistakes, when the O player could have won the game but doesn't. These can be found on:
 
* X3, O5, X4, O7, X6, O9, X1 (winning move would be O8, but Map says O2);
 
* X3, O5, X8, O7, X2, O1, X9 (winning move would be O4, Map says O6);
 
The same on six other symmetrical games to the above.
 
 
9)&nbsp;In Map for O, there are four further "strategy" mistakes, when the O player could have won the game but doesn't. These can be found on:
 
* X7, O5, X8, O9, X1, O4: the small squares for X6 and X2 are identical, but only the one for X6 is correct. In case of either X2 or X3, O has the winning move O6.
 
The squares for X2 and X3 should be:
 
X|X|O
 
-+-+-
 
O|O|<font color=red><strong>O</strong></font>
 
-+-+-
 
X|X|
 
 
and
 
X|X|O
 
-+-+-
 
O|O|<font color=red><strong>O</strong></font>
 
-+-+-
 
X| |X
 
 
respectively. The same on three other symmetrical games to the above.
 
 
10) &nbsp;In the map for O, center panel (first move X5), in the third level nested panel for X5, O7, X2, O8, X9, O1, move X2 from the second level "parent" panel is missing. The panel is depicted as:
 
 
  O|O|X
 
  -+-+-
 
[]|X|[]
 
  -+-+-
 
  O| |[]
 
 
where [] are the fourth-level nested panels, but should be:
 
  O|O|X
 
  -+-+-
 
[]|X|[]
 
  -+-+-
 
  O|X|[]
 
 
Same for the symmetrical game X5, O7, X6, O4, X1, O9, where X6 is missing.
 
  
 
==See also==
 
==See also==

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)