public bool GetPiece(int x, int y, ref ChessPiece piece) { return(GetPiece((ChessPositionIndex)x + 8 * y, ref piece)); }
public void SetPiece(int x, int y, ChessPiece piece) { SetPiece((ChessPositionIndex)x + 8 * y, piece.PieceType, piece.PieceColor); }