Closed xXDMOGXx closed 6 months ago
Due to assignments, midterm 2 and my new on-campus job I haven't been able to work on this. I will get on this as soon as my schedule opens back up tomorrow.
Hey, there hasn't been any progress since you last gave an update. I'm going to remove you from this since it's become high priority. If it sits unfinished for a couple days, you can request to be added back on
Task Description:
When generating commands, we need to check certain conditions that will cause special logic. These conditions will have methods in
src/common/chess-engine.ts
that can be called.Implementation Steps:
We will need a method called getPieceType that takes in a
Move
, and returns thePieceType
enum of the piece that is initiating a move. (Both PieceType and Move are located insrc/common/game-types.ts
) We will also need a series of checking methods. All of these methods will take in aMove
, and return a boolean. These are the methods that need to be implemented:promotionPiece
is present on the move.chess.js
.Additional Notes and Resources:
A lot of this information can be gathered from
src/common/game-types.ts
or from the chess.js instance insrc/common/chess-engine.ts
Expected Timeline:
This should be able to be completed with a single ChessBot meeting.
If you have any questions while working on this task, don't hesitate to do any one of the following: