Ranking algorithm
Hello. I want to do plugin but I had a problem.
Plugin able to calculate the points for players but I dont know best way to associate its with the rank of player. The plugin itself sets(increases and decreases) points for players depending on the situation In example, first 100 players has 1 point and other 200 players has 2-4 points and other 2000 players has 5-1000 points. New player get 5 points and how better to recount the ranks of players in this situation? Maybe there is a module for this? |
Re: Ranking algorithm
I don't understand what these points are for.
Do you want points to be ranked closer to #1 or want less points? |
Re: Ranking algorithm
Example:
PHP Code:
|
Re: Ranking algorithm
I have similar understood how to make the best way.
After map loading must have ordered array with scores (index of this array = rank). If player gets points and difference with previous rank more than certain number (in example, 10) then in new array need to set [0][0] = new rank [0][1] = previous rank and if need to calculate rank then it will be necessary to address to this new array. If difference with previous rank less than certain number then will make usual shift. I badly know English therefore it is difficult to explain |
| All times are GMT -4. The time now is 11:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.