示例#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()}");
 }