Files
DFJ/tasks/task_027.txt
2025-12-16 08:57:19 +08:00

12 lines
804 B
Plaintext

# Task ID: 27
# Title: Leaderboard System
# Status: pending
# Dependencies: 5, 17, 20
# Priority: medium
# Description: Develop a global leaderboard system to display top players based on various metrics (e.g., rank, wins, win rate).
# Details:
Backend: Implement API endpoints to fetch leaderboard data (e.g., top 100 players by rank, by wins). This might involve efficient queries on the `Users` collection or pre-calculated data in Redis. Frontend: Create a 'Leaderboard' screen with tabs for different ranking criteria. Display player's own rank within the leaderboard.
# Test Strategy:
Populate the database with dummy user data and varied stats. Verify leaderboard data is fetched correctly and sorted as expected for different criteria. Check UI rendering of top players and user's own position.