示例#1
0
 private void Board_OnNewPieceCaptured(object sender, PieceCapturedEventArgs e)
 {
     if (e.PieceCaptured != null && e.PieceCaptured.Equals(this))
     {
         this.BoardPosition = null;
     }
 }
示例#2
0
 private void Board_OnNewPieceCaptured(object sender, PieceCapturedEventArgs e)
 {
     if (e.PieceCaptured != null && this.Equals(e.PieceCaptured.Player))
     {
         if (this.MyPiecesInBoard.Contains(e.PieceCaptured))
         {
             this.MyPiecesInBoard.Remove(e.PieceCaptured);
         }
         else
         {
             Console.Write("AAAAA");
         }
     }
 }