Beispiel #1
0
        public override void EnterMove_number_indication(PGNParser.Move_number_indicationContext context)
        {
            if (_lastMoveNumber != 0)
            {
                Moves.Add(_lastMoveNumber, new List <string>(_lastMoves));
                _lastMoves.Clear();
            }

            _lastMoveNumber++;
        }
Beispiel #2
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="PGNParser.move_number_indication"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitMove_number_indication([NotNull] PGNParser.Move_number_indicationContext context)
 {
 }