highscore help
Author |
Message |
kirby_col7
|
Posted: Fri Jan 11, 2008 10:43 pm Post subject: highscore help |
|
|
what are some ideas for making a highscore datafile and how could i get it to sort, i was thinking arrays with a sort in it any other ideas? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Fri Jan 11, 2008 11:46 pm Post subject: RE:highscore help |
|
|
consider Insertion Sort -- you already know that your highscore datafile is sorted, so when adding a new highscore, you just need to find the first line where the recorded score is lower. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
|
|