string? input; Console.Clear(); Console.WriteLine("Welcome True Programmer, to the final battle for the realms of C#."); Console.WriteLine("------------------------------------------------------------------"); Thread.Sleep(1000); Console.WriteLine("\nThis will be the final battle against the Uncoded One..." + "\nAre you ready?"); Console.WriteLine("--------------------------------------------------------" + "--------------"); Console.ReadLine(); while (true) { Console.Clear(); Console.Write("\nWould you like the heroes party to be controlled by AI? (yes/no): "); input = Console.ReadLine().ToLower(); if (input == "yes" || input == "no") { if (input == "yes") { GameState.Instance.herosAIControl = true; } if (input == "no") { GameState.Instance.herosAIControl = false; } } else { Console.WriteLine("Please answer yes or no."); Thread.Sleep(1000); continue; } break; } while (true) { Console.Clear(); Console.Write("\nWould you like the monsters party to be controlled by AI? (yes/no): "); input = Console.ReadLine().ToLower(); if (input == "yes" || input == "no") { if (input == "yes") { GameState.Instance.monstersAIControl = true; } if (input == "no") { GameState.Instance.monstersAIControl = false; } } else { Console.WriteLine("Please answer yes or no."); Thread.Sleep(1000); continue; } break; } Player player = new Player(); GameState.Instance.heros.Add(player); Console.Clear(); Console.Write("Press Enter to to begin your battle to save True Programming..."); Console.ReadLine(); GameState.Instance.Run();