Algorithm for rank points
#9

To get the score needed from the table, there`s a simple sum formula,

So, for example, for level 10 it would go like

S(10) = 10*(1+10)/2, producing 55. Just multiply it with 10 and voila.

pawn Код:
levelPoints(int level)
{
    return 10*level*(level+1)/2;
}
http://ideone.com/SBTQeW
Reply


Messages In This Thread
Algorithm for rank points - by MP2 - 05.11.2015, 11:22
Re: Algorithm for rank points - by Karan007 - 05.11.2015, 11:25
Re: Algorithm for rank points - by Macluawn - 05.11.2015, 11:41
Re: Algorithm for rank points - by MP2 - 05.11.2015, 11:43
Re: Algorithm for rank points - by Macluawn - 05.11.2015, 11:47
Re: Algorithm for rank points - by MP2 - 05.11.2015, 11:49
Re: Algorithm for rank points - by Macluawn - 05.11.2015, 11:55
Re: Algorithm for rank points - by MP2 - 05.11.2015, 12:05
Re: Algorithm for rank points - by Macluawn - 05.11.2015, 12:20
Re: Algorithm for rank points - by AbyssMorgan - 05.11.2015, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)