WolfByteCollective / FlashCards

A spaced repetition learning platform to create, memorize and share your knowledge list using flashcards.
MIT License
0 stars 1 forks source link

Develop Quiz LeaderBoard #7

Closed AkhilChawla closed 1 week ago

AkhilChawla commented 1 week ago

Description:

Implement a leaderboard feature in the flashcard quiz application to enhance user engagement and provide a competitive aspect to the quizzes. The leaderboard will display the top users based on their quiz scores, encouraging users to improve their performance.

Requirements:

User Score Tracking:

- The application must track the scores of all users after completing quizzes.
- Scores should be calculated based on the number of correct answers.

Sorting Mechanism:

- The leaderboard should automatically sort users based on their scores in descending order.
- Users with the same score should be sorted by the most recent attempt.

Refresh Mechanism:

- The leaderboard should refresh automatically after each quiz completion.

Visual Design:

- The leaderboard must be visually appealing and consistent with the overall design of the application.
- Include animations or transitions for a smoother user experience.

Acceptance Criteria:

Functionality:

- Users can view their scores and rankings on the leaderboard after completing quizzes.
- The leaderboard displays the correct user information and scores.

Sorting and Ranking:

- The leaderboard correctly sorts users based on their scores and completion times.
- Users with identical scores are ranked correctly based on the fastest completion time.
AkhilChawla commented 1 week ago

This PR handles the fix for the issues

https://github.com/WolfByteCollective/FlashCards/pull/8