paaspop points calculation - Paaspop/Paaspop-Server GitHub Wiki

How points are calculated

Each game can reward a player with 75 paaspop points +7.5 participation points.

The highest game-score of any user is used as a 'maxPoint' parameter, with this information the percentage of all other users compared to the 'maxPoint' parameter can be calculated.

This percentage is mapped against the maximum paaspop points (75 points). The result from this is what will be saved on MongoDB.

Participation points (10% of 75 (7.5)) will be included in the calculated paaspop points.

Example:

game-points paaspop points
100 82.5
50 45.5
0 7.5

Array tests

"points":[ {"user_id":"id", "points":0}, {"user_id":"id", "points":3}, {"user_id":"id", "points":4}, {"user_id":"id", "points":5} ]

"points":[ {"user_id":"id", "points":0}, {"user_id":"id", "points":250}, {"user_id":"id", "points":499}, {"user_id":"id", "points":500} ]