Comet-Robotics / chessBot

♟️ control software for the chess bot project
http://chessbots.cometrobotics.org/
MIT License
6 stars 3 forks source link

[Server]: Create move classification methods in Chess Engine #146

Closed xXDMOGXx closed 6 months ago

xXDMOGXx commented 8 months ago

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 the PieceType enum of the piece that is initiating a move. (Both PieceType and Move are located in src/common/game-types.ts) We will also need a series of checking methods. All of these methods will take in a Move, and return a boolean. These are the methods that need to be implemented:

Additional Notes and Resources:

A lot of this information can be gathered from src/common/game-types.ts or from the chess.js instance in src/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:

MuditUpadhyay04 commented 7 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.

xXDMOGXx commented 7 months ago

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