|
I need help!
Ok, i need help with a problem. Its a program that generates a random number, allows 3 guesses and has 8 rounds. It stores the guesses and calculates how many rounds the user guessed right then gives a little rating. Ive done this part. the next part is:
Finally, modify your program so that the game can be played by multiple players. When the program begins, a message is printed asking how many players will take part. A maximum of 6 players should be imposed. The computer generates ONE random number for each round. Each player plays 8 rounds, in which they take turns at guessing the generated random number. At the end of the 8 rounds, the program prints a message saying which player (or players) won the most games.
I dont know how to structure my program to do this. from the previous version, it goes through all 8 rounds first. How do i store the scores in ym array and then sort them for the winning players?
Any help is appreciated
|