Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+5 votes

So I want to record the high scores and show at the end of the play. What should I do to be most convenient??

Thank you.

asked in CSC305 Fall 2019 by (8 points)

2 Answers

0 votes

You could probably create a list of the highest scores and then use a for loop to display the highest scores. Unless the code is turned into executable code, the only way you can display scores from previous games would probably be reading and writing the highest scores to a text file

answered by (8 points)
0 votes

You could either create a text file and through the scores into the file after every game and then have the code read through said file or you could create a list and then have a loop run through that list to display the scores.

answered by (8 points)
...