예제 #1
0
        public override String ToString()
        {
            String rv = "";

            if (piece != null)
            {
                rv = piece.ToString();
            }
            else
            {
                rv = "-";
            }

            return(rv);
        }
예제 #2
0
 public override string ToString()
 {
     return($"{((piece == null) ? "-" : piece.ToString())}: {fromSpace.getCoordinateString()}{toSpace.getCoordinateString()}");
 }