String disambiguationFile() { foreach (Move move in this.board.getCurrentPlayer().getLegalMoves()) { if (move.getDestinationCoordinate() == this.destinationCoordinate && !this.Equals(move) && this.movedPiece.getPieceType().GetPieceType().Equals(move.getMovedPiece().getPieceType())) { return(BoardUtils.getPostionAtCoordinate(this.movedPiece.getPiecePosition()).Substring(0, 1)); } } return(""); }
public override string ToString() { return(BoardUtils.getPostionAtCoordinate(this.destinationCoordinate)); }
public override string ToString() { return(BoardUtils.getPostionAtCoordinate(this.movedPiece.getPiecePosition()).Substring(0, 1) + "x" + BoardUtils.getPostionAtCoordinate(this.destinationCoordinate)); }
public override string ToString() { return(movedPiece.getPieceType().GetPieceType() + disambiguationFile() + "x" + BoardUtils.getPostionAtCoordinate(this.destinationCoordinate)); }