Question

3 Chess Pieces

In addition to creating Board. java, you will also be required to implement classes for each of the

different types of chess pieces. These classes will all follow a similar structure, with

• A constructor, which takes in parameters (int row, int col, boolean isBlack)

• public boolean isMoveLegal (Board board, int endRow, int endCol)

Input: The state of the board, the destination row of the move, and the destination column

of the move.

Output: Whether the piece can move from its current location to the destination provided,

given the current board state.

IMPORTANT: Please look at the rules document for more information on how to implement

certain pieces, especially the pawn with its pawn promotion.

Question image 1