Esempio n. 1
0
 private bool Guess()
 {
     AssertAPINotNull();
     do
     {
         if (GameAsk.Guess(API))
         {
             return(true);
         }
     } while (!API.IsOutOfGuesses());
     return(false);
 }
Esempio n. 2
0
 private void AskInfo()
 {
     AssertAPINotNull();
     GameAsk.AskMax(API);
     GameAsk.AskMin(API);
     if (IsSingle)
     {
         string[] objects = new string[]
         { "The magic mirror", "Donald Trump", "Your mom", "Area 51", "Ricardo", "Pewdiepie",
           "The cosmic background radiation", "Batman", "Peanut Butter" };
         string person = (string)objects.GetValue(new Random().Next(objects.Length));
         Console.WriteLine($"{person} is setting the correct answer");
         API.SetCorrectRandom();
     }
     else
     {
         GameAsk.AskCorrect(API);
     }
     GameAsk.AskAllowedGuesses(API);
 }