Hi Guys,
Some of my favorite calculator games have highscore tables! My next calculator game will have a highscore table!
If you are programming a game and wanted a highscore table you could create one; they are not difficult to program. But it would take some time; and probably some bugs to fix along the way.
I figured I'd write it once in a simple, neat, sharable way such that myself and others could use it! All source is included such that you can make any modifications you'd like! It is written in C. And hopefully it is able to meet all of your highscore needs!
It is in the form of a static library (meaning you compile it in with your program). There is even a little nspirio program to test it. I added unit tests which tests that the functionality does work as intended so hopefully there shouldn't be any problems!
The initial concept was simple; it is a table of scores and names. Thinking a little more I figured somebody might want to make a game with difficulties such as "easy", "medium", "hard" and keep highscores for each difficulty. I used the term identifier; and this library can do that!
I used a singly linked-list for the highscore items and there is a way to add extra data should you want to keep more than a name and score. There is some usage information in the Readme file in the zip attachment. But just let me know if you have any questions!
Thank you for reading!
Enjoy your day!