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

12 lines
887 B
Plaintext

# 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.