Exemplo n.º 1
0
 //Return a descriptive move text
 public override string ToString()
 {
     if (m_Type == Move.MoveType.CaputreMove)                    // It's a capture move
     {
         return(m_Piece + " " + m_StartCell.ToString2() + "x" + m_EndCell.ToString2());
     }
     else
     {
         return(m_Piece + " " + m_StartCell.ToString2() + "-" + m_EndCell.ToString2());
     }
 }
Exemplo n.º 2
0
 //Return a descriptive move text
 public override string ToString()
 {
     if (MovType == Move.MoveType.CaputreMove)                   // It's a capture move
     {
         return(PieceValue + " " + StartingCell.ToString2() + "x" + EndingCell.ToString2());
     }
     else
     {
         return(PieceValue + " " + StartingCell.ToString2() + "-" + EndingCell.ToString2());
     }
 }