Step 1: Multi-Player Random Number Game Assignment
ü Ask how many users will be playing (1-n)
ü Remember Error Checking on ALL inputs
ü Choose a random number for each player
ü Ask each player (one guess per round) to enter their guess
ü Alert the user with “Too High”, “Too Low”, “CORRECT!”
ü Record the answer for each user, if incorrect.
ü If the user was correct, skip them in subsequent rounds.
ü Once all players have guessed their correct number, print out the number of guesses it took for each one to guess correctly, the incorrect responses, and show a ranking of the players.
ü Ask if the user wishes to play again. If so, reset all values.
Rubric:
1. Program executes as submitted - 5 points
2. Random Number is selected for each player - 5 points
3. User is/are warned on out of range/illegal entries - 10 Pts
4. Correct response displayed for each entry – 3 pt each
(too high / too low / correct)
5. Players are asked in the right order or skipped correctly (10 pts)
6. Users are notified of outcome of ranking (after all win) 10 pt
7. Correct output displaying number of guesses per player 10 pts
8. Incorrect guesses for players in a table at the end of play 10pt
9. Program prompts users to play again, and resets values – 10 Pts.
10. Program terminates gracefully - 1 points
Step 2 (Based on Step 1):
Enables each player to enter his/her name for the purpose of tracking how well they play the game against other players.
Requirements & Assumptions:
§ Assume that no matter how many players play your game, they each have a unique name.
§ Ensure standings information is persistent...(Be able to maintain standings even after the program is closed and restarted)
§ Standings are based on the average number of guesses a player takes to enter the 'right' number.
Example:
Player: John
Game 1 - 5 guesses
Game 2 - 8 guesses
Game 3 - 1 Guess
Game 4 - 6 Guesses
Game 5 - 10 Guesses
Average # of guesses = 6
§ The player with the lowest Average number of guesses is the best.
§ Players do not need to participate in every round of play...Their standing is solely based on the average number of guesses from the rounds that they have played.
§ After each game completes, print out a table of the standings, showing the ranking of each player and their average number of guesses