The Leaderboard Feature will keep track of the score for each bot during gameplay, showing the number of wins and losses for each bot. This will allow users to track the performance of their bots and identify which ones are winners and which ones are losers.
User Story
As a user, I want to be able to view the wins and losses of my bots on a leaderboard during gameplay. This will help me keep track of their performance and identify which bots are the strongest.
Task Overview
High Priority
[x] Design the layout and UI for the leaderboard component.
[ ] #58 Create a leaderboard component that displays the wins and losses for each bot.
[ ] #62 Define data structures to store the win and loss tallies for each bot.
[ ] #63 Create functions to increment/decrement the tallies for each bot when it wins/loses a collision.
[ ] #64 Integrate the tally update functions into the game mechanics so that the tallies are updated in real-time.
[ ] #65 Integrate the leaderboard component into the game mechanics so that it updates in real-time as bots win or lose collisions.
[ ] #69 Test the functionality of the leaderboard feature to ensure that it works as intended.
Medium Priority
[ ] Implement a function that increments the win tally for a bot when it wins a collision.
[ ] Implement a function that decrements the loss tally for a bot when it loses a collision.
[ ] Implement error handling for edge cases, such as invalid input or incorrect application of the leaderboard function.
Low Priority
[ ] Optimize the leaderboard functionality for performance to minimize any impact on game speed
[ ] Document the leaderboard component and function, including any inputs, outputs, and dependencies.
[ ] Update the user documentation to explain the new leaderboard functionality and how to use it in the game.
Additional Considerations
Include a link, dropdown, or modal pop up to explain how the leaderboard works and how to interpret the data displayed.
Consider adding a feature that allows users to sort the leaderboard by wins or losses to easily identify the strongest and weakest bots.
Feature Description
The Leaderboard Feature will keep track of the score for each bot during gameplay, showing the number of wins and losses for each bot. This will allow users to track the performance of their bots and identify which ones are winners and which ones are losers.
User Story
As a user, I want to be able to view the wins and losses of my bots on a leaderboard during gameplay. This will help me keep track of their performance and identify which bots are the strongest.
Task Overview
High Priority
Medium Priority
Low Priority
Additional Considerations