//Return the character representing the piece currently on the coordinate; returns I if the coordinate is invalid public char getPiece(game target) { //Check if the coordinate is valid if (x > 7 || y > 7 || x < 0 || y < 0) { return('I'); } else { return(target.board[x, y]); } }
public movingEngine(game target) { toAnalyze = target; }