Here’s what the user sees when they run the Tic-Tac-Toe program. The text the player enters is in bold. Welcome to Tic-Tac-Toe! Do you want to be X or O? X The computer will go first. O | | -------------- | | -------------- | | What is your next move? (1-9) 3 O | | -------------- X | | -------------- O | | X What is your next move? (1-9) 4 O | | O -------------- X | | -------------- O | | X What is your next move? (1-9) 5 O | O | O -------------- X | X | -------------- O | | X The computer has beaten you! You lose. Do you want to play again? (yes or no) no Process finished with exit code 0 languege Java, please help me Questions for this assignment How should the AI be implemented?
Here’s what the user sees when they run the Tic-Tac-Toe program. The text the player enters is in bold.
Welcome to Tic-Tac-Toe!
Do you want to be X or O?
X
The computer will go first.
O | |
--------------
| |
--------------
| |
What is your next move? (1-9)
3
O | |
--------------
X | |
--------------
O | | X
What is your next move? (1-9)
4
O | | O
--------------
X | |
--------------
O | | X
What is your next move? (1-9)
5
O | O | O
--------------
X | X |
--------------
O | | X
The computer has beaten you! You lose.
Do you want to play again? (yes or no)
no
Process finished with exit code 0
languege Java, please help me
Questions for this assignment
How should the
Trending now
This is a popular solution!
Step by step
Solved in 7 steps with 6 images