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

            if (match)
            {
                Matches--;
            }
        }
Example #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--;
            }
        }