任务
This commit is contained in:
11
tasks/task_025.txt
Normal file
11
tasks/task_025.txt
Normal 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.
|
||||
Reference in New Issue
Block a user