public override String ToString() { String rv = ""; if (piece != null) { rv = piece.ToString(); } else { rv = "-"; } return(rv); }
public override string ToString() { return($"{((piece == null) ? "-" : piece.ToString())}: {fromSpace.getCoordinateString()}{toSpace.getCoordinateString()}"); }