Question: Write a program that asks a player whether they want to play or exit bulls and cows. If exit is selected, end the game. If

Write a program that asks a player whether they want to play or exit bulls and cows. If exit is selected, end the game. If not start a new game. Randomly generate an integer with four unique digits. The digits must range from 1 to 9. Ask the player for their guess. If the player enters and invalid number, request the player to reenter a valid number, this must be done by using a loop. Calculate and display the results of the number of bulls and cows. Continue the game until correct guess is made or the player wished to quit, this must be done in a loop. If the player guesses correctly congratulate them, if the player quits the game prematurely then simply display the number and end the game. Ask the player whether they want to continue or exit. Start a new game or exit, this must be done in a loop. This is done in PYTHON and I have NOT learned lists yet.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!