allright, forgive me, i didn't do a very good job of describing the scenario for end-of-round processing.
here is a table of data:
Code:
________________Frags Rank HS's Rank Damage Rank
Player[1] 14 4 8 3 1800 3
Player[2] 12 5 12 2 2100 2
Player[3] 8 6 3 6 766 9
Player[4] 7 7 6 5 1233 6
Player[5] 18 2 7 4 1337 5
Player[6] 22 1 2 7 1700 4
Player[7] 16 3 15 1 2251 1
Player[8] 3 9 1 8 333 10
Player[9] 6 8 3 6 921 8
Player[10] 7 7 1 8 1012 7
task: for each player, calculate rank against all players in each of the 3 categories. this is represented by the three Rank columns in the data table.
then, calculate each players overall score. here is how we arrive at Player[1]'s overall score:
Player[1] Overall Rank Calculation:
-----------------------------------
Rank in Frags: 4th
Rank in Headshots: 3rd
Rank in Damage: 3rd
===================================
Player[1] Overall Rank: 3.3333
===================================
Player Overall Rank Calculation:
--------------------------------
player[1]: (4+3+3)/3=3.3333
player[2]: (5+2+2)/3=3.0000
player[3]: (6+6+9)/3=7.0000
player[4]: (7+5+6)/3=6.0000
player[5]: (2+4+5)/3=3.6667
player[6]: (1+7+4)/3=4.0000
player[7]: (3+1+1)/3=1.6667
player[8]: (9+8+10)/3=9.0000
player[9]: (8+6+8.0)/3=7.3333
player[10]: (7+8+7)/3=7.3333
=================================
MVP Overall: Player[7] 1.6667
=================================