



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Welcome to Tic-Tac-Toe!! Would you like to play a game? (enter 'yes' or 'no'): yes Who should move first? (c=computer or h=human): c The computer is X, the human is O. The computer chooses cell 6. | | ---+---+--- | | ---+---+--- X | | Enter an empty position number (0-8): 0 The computer chooses cell 3. O | | ---+---+--- X | | ---+---+--- X | | Enter an empty position number (0-8): 4 The computer chooses cell 5. O | | ---+---+--- X | O | X ---+---+--- X | | Enter an empty position number (0-8): 8 The human wins! The human must have cheated. O | | ---+---+--- X | O | X ---+---+--- X | | O
Enter an empty position number (0-8): 3 The computer chooses cell 5. O | | O ---+---+--- O | | X ---+---+--- X | | X Enter an empty position number (0-8): 4 The computer chooses cell 7. The computer wins! Humans are not very bright. O | | O ---+---+--- O | O | X ---+---+--- X | X | X Game over! Would you like to play again? (enter 'yes' or 'no'): no Goodbye!
Welcome to Tic-Tac-Toe!! Would you like to play a game? (enter 'yes' or 'no'): maybe Goodbye!
Welcome to Tic-Tac-Toe!! Would you like to play a game? (enter 'yes' or 'no'): yes Who should move first? (c=computer h=human): c The computer is X, the human is O. The computer chooses cell 3. | | ---+---+--- X | | ---+---+--- | | Enter an empty position number (0-8): 4 The computer chooses cell 0. X | | ---+---+--- X | O |
Enter an empty position number (0-8): 6 The computer chooses cell 2. X | | X ---+---+--- X | O | ---+---+--- O | | Enter an empty position number (0-8): 1 The computer chooses cell 8. X | O | X ---+---+--- X | O | ---+---+--- O | | X Enter an empty position number (0-8): 5 The computer chooses cell 7. A tie! The human got lucky. X | O | X ---+---+--- X | O | O ---+---+--- O | X | X Game over! Would you like to play again? (enter 'yes' or 'no'): no Goodbye!