Advertisement
Guest User

Untitled

a guest
Mar 19th, 2023
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. Let's play tic tac toe. After every move please check the game state to see if anyone has won. You go first.
  2.  
  3. -----
  4. Alright! I'll be X, and you'll be O. Here's the initial game board:
  5.  
  6. markdown
  7. Copy code
  8. 1 | 2 | 3
  9. ---------
  10. 4 | X | 6
  11. ---------
  12. 7 | 8 | 9
  13. I placed an X in the center. Your turn! Please indicate your move by providing the number of the corresponding cell (1-9).
  14.  
  15. -----
  16. 7
  17.  
  18. -----
  19. Great! Here's the updated game board:
  20.  
  21. markdown
  22. Copy code
  23. 1 | 2 | 3
  24. ---------
  25. 4 | X | 6
  26. ---------
  27. O | 8 | 9
  28. No one has won yet. My turn:
  29.  
  30. markdown
  31. Copy code
  32. 1 | 2 | 3
  33. ---------
  34. 4 | X | 6
  35. ---------
  36. O | X | 9
  37. Your move!
  38.  
  39. -----
  40. 4
  41.  
  42. -----
  43. Nice move! Here's the updated game board:
  44.  
  45. markdown
  46. Copy code
  47. 1 | 2 | 3
  48. ---------
  49. O | X | 6
  50. ---------
  51. O | X | 9
  52. No one has won yet. My turn:
  53.  
  54. markdown
  55. Copy code
  56. 1 | 2 | X
  57. ---------
  58. O | X | 6
  59. ---------
  60. O | X | 9
  61. I've won! The game board looks like this:
  62.  
  63. markdown
  64. Copy code
  65. 1 | 2 | X
  66. ---------
  67. O | X | 6
  68. ---------
  69. O | X | 9
  70. I have three X's vertically in the middle column. Thanks for playing! If you'd like to play again, just let me know.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement