subject

Write a sixth game program that can play tic tac toe. This game displays the lines of the tic tax toe game and prompts the player to choose a move. The move is recorded on the screen and the computer picks his move from those that are left. The player then picks his next move. The program should allow only legal moves/. The program should indicate when there is a winner and tell who won. The player is then asked if he would like to play again. If the game is played the second time the computer is first to move. The player and computer take turns being first' player is then asked if he would like to play again. A sample output is shown in the attached file.
Tic_tac_toe game This game is played between you and the computer.
You move first and the computer will then move.
Play continues until you or the computer wins or it is a "cat's" game.
1 2 3
A ___|___|___
B ___|___|___
C | |
Please enter your move.
a1
1 2 3
A _X_|___|___
B ___|___|___
C | |
Computer makes a move.
1 2 3
A _X_|_O_|___
B ___|___|___
C | |
Please enter your move. b2
1 2 3
A _X_|_O_|___
B ___|_X_|___
C | |
Computer makes a move.
1 2 3
A _X_|_O_|___
B ___|_X_|___
C | | O
Please enter your move.
b1
1 2 3
A _X_|_O_|___
B _X_|_X_|___
C | | o
Computer makes a move.
1 2 3
A _X_|_O_|___
B _X_|_X_|___
C o | | O
Please enter your move.
b3
Congratulations you won!!
1 2 3
A _X_|_O_|___
B _X_|_X_|_X_
C o | | O
Would you like to play Tic-Tac-Toe again?
(yes/no)
Game 6 - due date FiveDigitNumber class - Write a sixth game program using the random number generator to generate a five-digit number. The player guesses the number. With each guess the computer returns two numbers, the first is the number of digits that are in the proper position and the second is the sum of the correct digits. Allow the client to repeat the game as many times as she wishes. Guarantee the numbers entered are 5 digit numbers. A sample output is shown in the attached file.
Using the random number generator, this game creates a
five-digit number. The player guesses the number.
The computer returns two numbers, the first is the number
of digits that are in the proper position and the second
is the sum of the correct digits guessed so far.
The player continues guessing untill she gueses the correct number.
Please enter the number you would like to guess.
24834
You have found 1 digits so far with a sum of 8.
Please enter the number you would like to guess.
26845
You have found 2 digits so far with a sum of 14.
Please enter the number you would like to guess.
56856
You have found 3 digits so far with a sum of 19.

Please enter the number you would like to guess.
56867
You have found 3 digits so far with a sum of 19.
Please enter the number you would like to guess.
56878
You have found 3 digits so far with a sum of 19.
Please enter the number you would like to guess.
56889
You have found 4 digits so far with a sum of 27.
Please enter the number you would like to guess.
56880
It took 7 guess to get the number 56880.
Would you like to play the game again?
Please enter (yes/no)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 07:30
What are ways to switch windows in excel? check all that apply. on the status bar, click the windows button, and then click the file name. on the task bar, click to display the excel jump list, and then click the file name. on the view tab, in the window group, click switch windows, and then click the file name. on the review tab, in the viewing group, click files, and then click the file name.
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
Which of these is an example of an integrated presentation? a. a table created in powerpoint b. an image pasted into powerpoint c. a caption created in powerpoint d. an excel chart pasted into powerpoint
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Plz ( which is an example of a good url?
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
@josethesolis i need can anyone text me and follow me
Answers: 1
You know the right answer?
Write a sixth game program that can play tic tac toe. This game displays the lines of the tic tax to...
Questions
question
Mathematics, 19.04.2021 17:50
question
Mathematics, 19.04.2021 17:50
question
Mathematics, 19.04.2021 17:50
Questions on the website: 13722359