Exemplo n.º 1
0
        /// <inheritdoc />
        protected override void OnHistoryValueDequeued()
        {
            bool match = HistoryMatches.Dequeue();

            if (match)
            {
                Matches--;
            }
        }
Exemplo n.º 2
0
        /// <inheritdoc />
        protected override void OnHistoryValueDequeued()
        {
            //Check if it was a match.
            bool match = HistoryMatches.Count > _neighbourOffset &&
                         HistoryMatches.ElementAt(_neighbourOffset);

            //Deuque.
            HistoryMatches.Dequeue();
            if (match)
            {
                Matches--;
            }
        }