I am working on a game where some teams compete to accumulate points (each team has its own variable which is increased by the points). At the end of each race, a classification based on the score should be drawn up. Do you have an idea how I can have those variables sorted by score?
How are you storing the scores? An array/structure or individually named variables? Or some other way?
there are only 10 teams, so the variables would be “team.1”, “team.2” … etc … The game is still being written, so I can change the structure of the variables as needed … perhaps to adapt it to some system already used to make the ranking