public override int GuessNumber()
        {
            _baseNumber++;

            while (AlreadyGuessedNumbers.Contains(_baseNumber))
            {
                _baseNumber++;
            }

            return(_baseNumber);
        }
示例#2
0
        public override int GuessNumber()
        {
            var newNumber = Randomizer();

            while (AlreadyGuessedNumbers.Contains(newNumber))
            {
                newNumber = Randomizer();
            }

            return(newNumber);
        }
示例#3
0
        public override int GuessNumber()
        {
            var newNumber = _random.Next(40, 140);

            while (AlreadyGuessedNumbers.Contains(newNumber))
            {
                newNumber = _random.Next(40, 140);
            }

            AlreadyGuessedNumbers.Add(newNumber);

            return(newNumber);
        }