Question The Assigned Functions checkguess:Application Concept: Evaluate a guessat the hidden combination… Show more A Tour of the Given Program File A program of this size is complex enough to require functions, and thefunctional design has already been provided in a ?le named mastermindpy . Download this ?le as the ?rststep in implementing this code. (Do NOT expect to complete this on time if starting completel… Show more This program will simulate the game ofMastermind. Assignment DescriptionThis is a board game in w… Show moreAbove example is how Our Python program should be shown outpython program must shows answer as the example above,as if i Put bbrr then it shows 0 pegs and 1pegs like that”What would you like to guess? BBRR0 pegs (correct color in correct location)1 pegs (correct color in incorrect location)”and”My guess is GGPRHow many black pegs (correct color in correct location)? 1How many white pegs (correct color in incorrect location)? 1all the rbgy and such are word of colors.”Like thisHomework 5 (Mastermind)Criteria Ratings Pts This criterion is linked to a Learning Outcomemet function specifications 5 ptsNo Descriptioncompleted definitions for the prescribed functions (check_guess, user_guesses, computer_guesses) 2 ptsNo Descriptionprogram consists of other recognizeable and well-defined functions 0 ptsNo DescriptionNo functions, or code duplicated between functions 5 pts This criterion is linked to a Learning Outcomecheck_guess black pegs 5 ptsNo Descriptionfunction correctly counts number of occurrences of corresponding pegs of the same color; also removes them from consideration for white pegs 4 ptsNo Descriptionfunction correctly correctly counts number of occurrences of corresponding pegs of the same color, but still allows those same pegs to be considered for white pegs 2 ptsNo DescriptionCan identify one black peg successfully, but not all 0 ptsNo Descriptionno recognizable code for scoring black pegs, or scores them very wrongly 5 pts This criterion is linked to a Learning Outcomecheck_guess white pegs 5 ptsNo Descriptionfunction correctly counts number of colored pegs in the wrong position, and does not count any peg more than once 2 ptsNo Descriptioncounts white pegs for colors out of place, but either counts some pegs twice (for too many white pegs) or the code is very unclearly correct 0 ptsNo Descriptionno recognizable code for scoring white pegs, or scores them very wrongly 5 pts This criterion is linked to a Learning Outcomeuser_guesses function 5 ptsNo DescriptionSimple and clear code for the user playing the Mastermind game; good loop condition (no break) 3 ptsNo DescriptionMostly correct play of the game, but seems to have some obvious flaws, or uses break to exit loop, or is hard to read 0 ptsNo Marksno equivalent functionality, or incorrect, or unreadable 5 pts This criterion is linked to a Learning Outcomecomputer_guesses function, in general 5 ptsNo DescriptionSimple and clear code for computer playing the Mastermind game; good loop condition (no break) 3 ptsNo DescriptionMostly correct play of the game, but seems to have some obvious flaws, or uses break to exit loop, or is hard to read 0 ptsNo Descriptionno equivalent functionality, or incorrect, or unreadable 5 pts This criterion is linked to a Learning Outcome No Description computer guesses ‘intelligently’ 5 ptsNo Descriptionclearly and correctly maintains list of viable solutions, trimming correctly after each response 2 ptsNo Descriptioneither incorrectly trims, such as not eliminating everything it should, or is seems unnecessarily complicated 0 ptsNo Descriptiondoes not make constructive use of previous user responses 5 pts This criterion is linked to a Learning Outcome overall readability 5 ptsNo Descriptioneasy to find the features evaluated above, with the help of program structure and distinct functions 3 ptsNo Descriptionall the features were found rather quickly, but structure of program or lack of blank lines interfered with finding them 0 ptsNo Descriptionit was hard to find whatever features were found 5 pts This criterion is linked to a Learning OutcomeExecution 5 ptsNo DescriptionSubmission runs to completion, without modification, and is all in one file (no imports) 3 ptsNo DescriptionProgram runs to completion after minor changes (no imports) 0 ptsNo DescriptionSubmitted code does not execute, or attempts to import from a different poker program file 5 pts This criterion is linked to a Learning Outcome Correctness 5 ptsNo DescriptionProduces predictable output — including predictable errors (such as errors already discovered above) 3 ptsNo DescriptionUnexpected incorrectness in results, not anticipated by program examination 0 ptsNo DescriptionNo correct results, or too many errors to make even running the program feasible, or requires another poker file as import 5 pts This criterion is linked to a Learning Outcome Functional Independence 5 ptsNo DescriptionMaintains function independence (does not cut-and-paste code or use global variables) 0 ptsNo Descriptiondoes not make effective use of functions and their independence 5 pts This criterion is linked to a Learning Outcome Counting Guesses 5 ptsNo Descriptioncorrectly counts guesses in each of the game functions, returning the counts as a return value to be compared by the ‘main’ function code 3 ptsNo Descriptionsupports counting the guesses, but either uses global variables or violates function independence 0 ptsNo Descriptionextra credit feature not attempted or poorly implemented 5 pts Total Points: 55Computer ScienceEngineering & TechnologyPython ProgrammingCMPSC 101Share Question

Order your essay today and save 20% with the discount code ESSAYHELP