Internal Service β This is not an HTTP endpoint. Itβs called by the ranking-score route.
Purpose
Generates 4 fake competitor scores that are displayed alongside the userβs score. Creates the impression of a competitive landscape.Function Signature
Parameters
Returns
List[int] - 4 competitor scores, sorted descending (highest first)
Rules
Example Output
For a user score of 38:Why This Design?
- Close competitor - Shows the user theyβre βalmostβ beating someone
- Higher scores - Creates urgency (βcompetitors are aheadβ)
- Sorted descending - Easy to display as a leaderboard
- Randomized ranking - Some users rank 4th (hope), some rank 5th (urgency)