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); }
public override int GuessNumber() { var newNumber = _random.Next(40, 140); while (AlreadyGuessedNumbers.Contains(newNumber)) { newNumber = _random.Next(40, 140); } AlreadyGuessedNumbers.Add(newNumber); return(newNumber); }
public override void NewNumberGuessed(int number) { AlreadyGuessedNumbers.Add(number); ReportMemoryNumber(); }