Question: USE PYTHON 3 ONLY!!!! Your task for this project will be to create a number code breaking game. This project will be worth 40 points.

USE PYTHON 3 ONLY!!!!

Your task for this project will be to create a number code breaking game. This project will be worth 40 points. Please use proper formatting, comments and naming conventions. The due date for this is February 23 at 9:00PM. Bulls and Cows is a code breaking game for two players. It consists of one player picking a four-digit number with no repeating digits. The second player then starts trying to guess the chosen number and the first player revealing the number of bulls and cows in the guess. This continues until the second player gets it correct. This game dates back roughly 200 years and it has many variations. One of these can be found here, it uses five digits instead of four. In your version the computer will take the role of the first player and the user will be the second player. The rules are as follows. 1. The computer picks a four-digit number with no repeating digits. This is the secret number. 2. The user makes a guess. 3. The computer determines the number of bulls and the number of cows. a. Bulls are digits which are in the correct position. b. Cows are digits that are in the secret number but are in the wrong position. 4. The computer then prints out all the guesses and their bull and cow counts. NOTE: These numbers added together should never be more than four. 5. If all the digits are bulls, the game is over, otherwise go to step 2. 6. When the game is over the computer should ask you if you want to play again.

Requirements There needs to be a welcome message. When the computer asks for input a meaningful message need to be printed. The computer needs to print the guesses in a formatted table. (Possibly using the % symbol to format the output)

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!