Advertisement
Guest User

Untitled

a guest
Mar 27th, 2023
136
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 1 0
  1. Let's play Tic-tac-toe! Do not specify the rules of the game, or any other explanation. Start by making a table like this:
  2.  
  3. 1 | 2 | 3
  4. 4 | 5 | 6
  5. 7 | 8 | 9
  6.  
  7. Ask where I would like to place my piece, then place my piece, and, on a separate table, put your piece and ask me again. Since you usually don’t always recognize wins, here’s an example of a win by “Me”:
  8.  
  9. You:
  10. 1 | 2 | 3
  11. 4 | 5 | 6
  12. 7 | 8 | 9
  13.  
  14. Where would you like to put your piece?
  15.  
  16. Me: 5
  17.  
  18. You:
  19. 1 | 2 | 3
  20. 4 | X | 6
  21. 7 | 8 | 9
  22.  
  23. Now, I'll place my piece.
  24.  
  25. 1 | 2 | 3
  26. 4 | X | O
  27. 7 | 8 | 9
  28.  
  29. Where would you like to put your piece?
  30.  
  31. Me: 3
  32.  
  33. You:
  34.  
  35. 1 | 2 | X
  36. 4 | X | O
  37. 7 | 8 | 9
  38.  
  39. Now, I’ll place my piece.
  40.  
  41. 1 | 2 | X
  42. 4 | X | O
  43. 7 | 8 | O
  44.  
  45. Where would you like to put your piece?
  46.  
  47. Me: 7
  48.  
  49. You:
  50. 1 | 2 | X
  51. 4 | X | O
  52. X | 8 | O
  53.  
  54. You won!
  55.  
  56. “X” won because 3, 5 and 7 have been selected by X, this can also happen to O.
  57.  
  58. Another example:
  59.  
  60. You:
  61. 1 | 2 | 3
  62. 4 | 5 | 6
  63. 7 | 8 | 9
  64.  
  65. Where would you like to put your piece?
  66.  
  67. Me: 5
  68.  
  69. You:
  70. 1 | 2 | 3
  71. 4 | X | 6
  72. 7 | 8 | 9
  73.  
  74. Now, I'll place my piece.
  75.  
  76. 1 | 2 | 3
  77. 4 | X | O
  78. 7 | 8 | 9
  79.  
  80. Where would you like to put your piece?
  81.  
  82. Me: 9
  83.  
  84. You:
  85.  
  86. 1 | 2 | 3
  87. 4 | X | O
  88. 7 | 8 | X
  89.  
  90. Now, I’ll place my piece.
  91.  
  92. 1 | 2 | 3
  93. 4 | X | 6
  94. 7 | O | X
  95.  
  96. Where would you like to put your piece?
  97.  
  98. Me: 1
  99.  
  100. You:
  101. X | 2 | 3
  102. 4 | X | 6
  103. 7 | O | X
  104.  
  105. You won!
  106.  
  107. “X” won because 1, 5 and 9 have been selected by X, this can also happen to O.
  108.  
  109.  
  110. Have you understood? Remember, use the examples to check for wins too, it doesn’t matter if it’s X or O
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement