 # Calculating explained

### Calculation of Points

You get Points for each BBC game you play, according to the following table:

1 2 3 4 5 Place Points if game is Step 1 Step 2 Step 3 Step 4 10 20 30 40 9 18 27 36 8 16 24 32 7 14 21 28 6 12 18 24 5 10 15 20 4 8 12 16 3 6 9 12 2 4 6 8 1 2 3 4

### Calculation of Score

If P is the Number of Points you got and G is the Number of Games you played, the score is calculated with the following formula: So its "Points per Game" multiplied with a coefficient. This coefficient is 1 in the first game, and increases by 1 if you play twice as much games (for instance it is 2 after 2 games, 3 after 4 games, 4 after 8 games, 5 after 16 games etc.). Why did we choose this formula? Because it gives Players who play more often a little bonus, but high scores requires good results too (because of "Points per Game").

For People who understand PHP, here is the formula copied from the source code:

 ```function calcscore(\$points, \$games)//\$games is number of played games { if(\$games<=0 or \$points<=0) return 0; \$coefficient = 1 + log((float)\$games, 2);//logarithm with base 2 \$score =(float)\$points* \$coefficient /(float)\$games; return (int)(\$score*1000); //score will be divided by 1000 in ranking } ```

site views (clicks, all sites): 8303728    Server Time: 2021-01-23 22:32:04