Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
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 (1 point)

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 (1 point)
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 (1 point)
...