This commit is contained in:
史悦
2025-12-16 08:57:19 +08:00
parent b8d081bd8a
commit dafb706202
46 changed files with 2610 additions and 0 deletions

11
tasks/task_027.txt Normal file
View File

@@ -0,0 +1,11 @@
# 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.