コード例 #1
0
ファイル: Move.cs プロジェクト: rshipley160/quick-chess
 //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());
     }
 }
コード例 #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());
     }
 }