[Server]: Construct all robots at the beginning of the game #192
Labels
approved
This issue has passed the draft stage, and is ready to be assigned
D2
Medium Difficulty
new-member
Issue is appropriate for new members
P2
Medium Priority
Task Description:
The Robot class can be found in
src/server/robot/robot.ts
. This class is an in-code representation for a physical ChessBot. This is great an all, but we don't actually create all the 32 instances at the start of the game right now.... we need to though.Implementation Steps:
server/api/api.ts
.src/server/robot/robot.ts
, you will need to change the constructor to accept only the id, since everything else can be calculated from that. You will then calculate all the other needed variables in the body of the constructor.src/server/api/bot-server-config.json
, you will need to add a new field to each robot. This field is startHeading. It determines what direction the robot will be facing when constructed. The robots will face each other, and a heading of 0 is to the right, like a unit circle.Additional Notes and Resources:
The RobotManager definition is in
src/server/robot/robot-manager.ts
.Expected Timeline:
This should be able to be completed in a single ChessBots meeting, or about a week.
If you have any questions while working on this task, don't hesitate to do any one of the following:
The text was updated successfully, but these errors were encountered: