Example #1
0
 public virtual void AppendCheckNotation()
 {
     if (Board.CheckIfMated(Piece.Side.Opposite()) == Piece.Side.GetVictoryStatus())
     {
         NotationAlgebraic += "#";
         NotationEnglish   += "mate";
     }
     else if (Board.IsInCheck(Piece.Side.Opposite()))
     {
         NotationAlgebraic += "+";
         NotationEnglish   += "ch";
     }
 }
Example #2
0
        public override void AppendCheckNotation()
        {
            NotationAlgebraic += Promotion.Abbreviation();
            NotationPGN       += "=" + Promotion.Abbreviation();
            NotationEnglish   += "(" + Promotion.Abbreviation(true) + ")";

            base.AppendCheckNotation();

            if (Board.CheckIfMated(Piece.Side.Opposite()) == Piece.Side.GetVictoryStatus())
            {
                NotationPGN += "#";
            }
            else if (Board.IsInCheck(Piece.Side.Opposite()))
            {
                NotationPGN += "+";
            }
        }