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_025.txt Normal file
View File

@@ -0,0 +1,11 @@
# Task ID: 25
# Title: Achievement System (Badges, Tasks)
# Status: pending
# Dependencies: 5, 16, 17
# Priority: medium
# Description: Introduce an achievement system with various badges and tasks to incentivize player engagement and provide long-term goals.
# Details:
Backend: Define `Achievement` model (e.g., 'First Win', '5-Win Streak', 'Hit King'). Implement logic to detect when achievements are unlocked based on game events and player stats. Store unlocked achievements in the `User` model. Frontend: Create an 'Achievements' section in the user profile to display earned badges and progress towards unearned ones. Provide visual flair for new achievements.
# Test Strategy:
Test unlocking various achievements (e.g., win first game, achieve a streak). Verify achievements are correctly recorded in the database. Check if the UI updates to show new achievements and progress.