Exemplo n.º 1
0
        public override int GuessNumber()
        {
            _baseNumber++;

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

            return(_baseNumber);
        }
Exemplo n.º 2
0
        public override int GuessNumber()
        {
            var newNumber = Randomizer();

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

            return(newNumber);
        }
Exemplo n.º 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);
        }