Finding a ranking from list of values
Hello, im creating a web based game where people can create a virtual character and battle vs another character. I have the code setup but i want a way to rank a character based on their stats and having trouble coming up with a way to give a rank to a character
Stats are based on the following
Health: 500
Mana: 750
Strength: 25
Agility: 25
Intellect: 40
Spirit: 40
Armour: 250
Defence: 5
Nature Resistance: 0
Fire Resistance: 0
Frost Resistance: 0
Not sure if its possible, my maths is too weak to think of one for myself.
thanks in advance