Exemplo n.º 1
0
 private static void PromptForBoardType()
 {
     while (true)
     {
         Console.WriteLine(
             "Press 1 for Blinker: Press 2 for Toad: Press 3 for Beacon: Press 4 for Pulsar: Press 5 for Pentadecathlon");
         var line = Console.ReadLine();
         if (line == "1")
         {
             b.CreateBlinkerBoard();
             break;
         }
         if (line == "2")
         {
             b.CreateToadBoard();
             break;
         }
         if (line == "3")
         {
             b.CreateBeaconBoard();
             break;
         }
         if (line == "4")
         {
             b.CreatePulsarBoard();
             break;
         }
         if (line == "5")
         {
             b.CreatePentadecathlonBoard();
             break;
         }
     }
 }