Part 1: Basic Game – Up to 75 points
Your solution should correctly accomplish all the following:
- Display a user-friendly message to your user explaining the rules and what to expect
- Create a random number for the user to guess and repeatedly ask the user until the correct
number is entered. - Track the guesses the user makes
• Your program should give helpful feedback to the user on an incorrect guess
• When the user guesses correctly, your program should:
▪ Notify the user of the correct guess
▪ Display the number of guesses it took
▪ Display all their prior guesses in a user-friendly message (do not simply print
the raw list variable itself)
▪ Ask the user if they wish to play again and restart the game if that is the
user’s desire. Hint: Make sure to reset variables needed to play the game. - Provide a user-friendly closing message.
You may choose whatever range of numbers you prefer provided you use the appropriate
random module function. Keep in mind the range should make sense to be fun and challenging.
Guessing between 1-5 or 1-10 is not exactly fun. Whatever range you choose, the program
should choose, not the user. Do not ask the user what range they would like.
Accomplishing this part correctly will earn you 75 of the 100 points for this project.
Part 2: Best Score – Up to 15 points
Your game should also implement a “best score” system that keeps track of the user’s best
(lowest) guess across all games played. This should be a separate variable from the number of
guesses it took the user to correctly guess the number. This part is broken into two sections: - Simple Best Guess (worth up to 5 out of 15 possible points)
• The best guess will be set at the end of the first game and checked after each
subsequent game.
• If the program ends and is restarted, this variable will be rest. - File-based best guess (worth the remaining 10 points)
• The best guess variable is loaded from a file (if available) when the program starts.
• If the file is unavailable, a message should be displayed and your program should
still continue to correctly run without the file, using only the variable.
• At the end of each game when the best guess is checked, your program should save
the new best guess, if it was achieved by the user.
• If the file didn’t exist previously, the program should create it.
• The filename used should be stored in a named constant
Accomplishing this part correctly will earn you up to 15 more points for this project.
I am beginning python so as simplified as possible please.
New contributor
Caroline Jesserer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2