Beispiel #1
0
        private char ChecksForSpecChar(char nextLetter)
        {
            if (MoveLetters.CheckForSecChar(nextLetter, '|'))
            {
                nextLetter = (char)str.Dequeue();
                if (MoveLetters.CheckForSecChar(nextLetter, 'D'))
                {
                    str        = str.AddAtFrontOfQueue('D');
                    nextLetter = (char)str.Dequeue();
                }
                else if (MoveLetters.CheckForSecChar(nextLetter, 'T'))
                {
                    str        = str.AddAtFrontOfQueue('T');
                    nextLetter = (char)str.Dequeue();
                }
            }

            return(nextLetter);
        }