Question: this is an assignment of python compsos-Project1-Week6 Due date: 5unday, March 5 - 11:59 pm Grade: 15% Project Deseription: Welcome to Project 1 for COMPgos.

this is an assignment of python
this is an assignment of python compsos-Project1-Week6 Due date: 5unday, March 5

compsos-Project1-Week6 Due date: 5unday, March 5 - 11:59 pm Grade: 15% Project Deseription: Welcome to Project 1 for COMPgos. This is the first big project for thls course, covering all the course content from the last fve weeks, You will implement and code a game called CODE, the game. The game b designed for the computer to make a unique A-digit code, and the player needs to solve it with the assistance of clues the program should provide to the plaver. A summary of how this game works is as follows: 1. Make a function that creates a unique secret code that doesn't take any parameters and returns a secret code of 4 individual digits from 0 to 9. Examples of valid codes will be "1234", "1489", "9654", or " 5601". 2. Make a function asking the user to input their guess, which doesn't take any parameters and returns the user's input. 3. Make a function to check for the validity of the input. This function will take the user input as a parameter and retum either true if the input is four unique digits or false if the input triggeis any of the following: a. The input is not exactly four digits long. b. The input contains non-number characters: c. The input contains recurring digits, Like "1123" or "9999". 4. Make a function that compares the code the user entered with the computer-generated code as a secret code. This function will take two parameters, the secret code and the user input. The function will return an array of strings representing if the digit is correct, misplaced, or wrong. Play the attached game to learn more. 5. Make a function that prints cut the input and the clues as to whether the digits are correct. misplaced, or wrang. 6. Make a function that wis tie everything together and play the game in the terminal: This function will ask the user to input the daits, check their validity, check towards the secret code, and output a result each round. This functioo will track the number of games it took to solve the code Grading rubric: Functioning code: 5 s Program and logic correctness, sh: Cofrnmenting 3K Wariables and functions apprograse naming 2K NOTE: The game is uplosded as a tip fite on Alackboard, Downigad the folder and then umeip it. Double click on code_the_Game.exe to play. If you encounter any bugs while playing. please intona: me

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!