Question: Write another function that takes two parameters: a user's guess and the current 'secret' guess. if the user's guess is exactly the same as the
Write another function that takes two parameters: a user's guess and the current 'secret' guess.
if the user's guess is exactly the same as the computer guess return the user gets points for an exact guess
Otherwise if the guess is within points of the secret guess, then return the user gets points for an approximate guess
Otherwise return
Call this function CheckGuess
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
