public class ChessBoard { public static final int SIZE = 8; //Error checks such as determining if the row,column is within the bounds of the board or //if the destination is occupied will be implemented by other methods. public boolean isMoveValid(int sourceRow, int sourceColumn, int destinationRow, int destinationColumn, String typeOfChessPiece) { boolean moveValid = false; //Write the code to determine a given a source (row,column) and a destination (row,column) //determine if it is true or false that the move is valid for a particular type of chess //piece. return(moveValid); } public boolean outOfBounds(int sourceRow, int sourceColumn, int destinationRow, int destinationColumn) { boolean outside = false; if ((sourceRow < 0) || (sourceRow >= SIZE) || (destinationRow < 0) || (destinationRow >= SIZE) || (sourceColumn < 0) || (sourceColumn >= SIZE) || (destinationColumn < 0) || (destinationColumn >= SIZE)) { outside = true; } return(outside); } }