- Popularity based game card highlighting (Math)
- Tag based highlighting (WIP 🚧)
In order to score a game and it's popularity, we set some weights for the 3 variables we take into consideration: views, likes and rating. These are used to scale the overall score depending on the user preference, i.e. if the user prefers games with higher ratings and does not care for likes, these variables can be modified to suggest those types of games.
The score is calculated using the following formula
flowchart LR
A[Views] -->|Over 20000| C
B[Rating] -->|Under 3| C{modifiers - 5}
flowchart LR
A[Rating] -->|Over 4.5| C
B[Likes] -->|Over 50| C{modifiers + 2}
The final score is compressed into 5 different categories with the following conversion table
| Score | Classifier | Name |
|---|---|---|
| >= 27 | 4 | High |
| >= 25 | 3 | Medium |
| >= 15 | 2 | Low |
| >= 9 | 1 | Bad |
| <= 8 | 0 | New |
As you can see, a score of 8 or lower is given the name of New since those games usually tend to lack enough community engagement to make a fair assumption. Getting a score this low is usually because of 0 reviews or 0 likes.