Organising a map for a highscores table.

here is one example.

Each score is composed by {name, score, date}:

Like in the old times, your highscore table is already filled. In this case, size 3 and with the following data:

Now is just a question of inserting the new highscore in the right place + poping out the last element of the array to keep the array length constant.


Usage:

1 Like