Exemple #1
0
        public override int GuessNumber()
        {
            var newNumber = Randomizer();

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

            return(newNumber);
        }
        public override int GuessNumber()
        {
            _baseNumber++;

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

            return(_baseNumber);
        }
Exemple #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);
        }
Exemple #4
0
 public override void NewNumberGuessed(int number)
 {
     AlreadyGuessedNumbers.Add(number);
     ReportMemoryNumber();
 }