private void Board_OnNewPieceCaptured(object sender, PieceCapturedEventArgs e) { if (e.PieceCaptured != null && e.PieceCaptured.Equals(this)) { this.BoardPosition = null; } }
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"); } } }