Feature Description
In the Arena, the bots battle it out on an 8x8 game grid. They bounce off the walls when they hit them and pause for a moment when they collide with each other. If a bot loses in a collision, it disappears from the arena.
When two bots collide and it's a tie, they both continue moving together. The battle continues until only one bot remains, and that bot is declared the winner. The leaderboard keeps track of the wins and losses for each bot.
User Story
As a player, I want to see the bots in the arena exhibit specific behaviors and outcomes based on their collisions and boolean operations.
Tasks
High Priority
[ ] #76
[ ] Identify when a bot collides with a boundary.
[ ] Update the position and direction of the bot upon collision.
[ ] Add visual feedback for boundary collisions.
[ ] #77
[ ] Define the conditions for a collision between two bots.
[ ] Detect collisions between bots.
[ ] Update bot behavior upon collision.
[ ] Handle collision outcomes (win, loss, or tie).
[ ] #78
[ ] Determine when a bot should disappear after collision.
[ ] Calculate the result of the boolean operation between the colliding bots.
[ ] Remove the losing bot from the arena.
[ ] Update the leaderboard and scores.
Mid Priority
[ ] #88
[ ] Determine the duration of the pause after collision.
[ ] Temporarily suspend bot movement upon collision.
[ ] Resume bot movement after the pause.
[ ] #89
[ ] Store the previous direction and speed of the winning bot upon collision.
[ ] Restore the direction and speed of the winning bot after collision.
[ ] Update the position of the winning bot based on the restored direction and speed.
[ ] #90
[ ] Determine conditions for a tie collision result.
[ ] Store the previous direction and speed of both colliding bots upon collision.
[ ] Restore the direction and speed of both colliding bots after collision.
[ ] Update the positions of both bots based on their restored directions and speeds.
Low Priority
[ ] #91
[ ] Track the number of remaining bots in the arena.
[ ] Check the number of remaining bots after each collision.
[ ] Stop gameplay and declare the remaining bot as the winner when only one bot remains.
Testing
[ ] Write unit tests using Jest to validate the functionality of the arena and collision outcomes.
TBD
Additional Considerations
Include anything else that may be helpful. For example, links to external resources.
Feature Description In the Arena, the bots battle it out on an 8x8 game grid. They bounce off the walls when they hit them and pause for a moment when they collide with each other. If a bot loses in a collision, it disappears from the arena.
When two bots collide and it's a tie, they both continue moving together. The battle continues until only one bot remains, and that bot is declared the winner. The leaderboard keeps track of the wins and losses for each bot.
User Story As a player, I want to see the bots in the arena exhibit specific behaviors and outcomes based on their collisions and boolean operations.
Tasks
High Priority
Mid Priority
Low Priority
Testing
Additional Considerations Include anything else that may be helpful. For example, links to external resources.