/// <summary> /// Manages the initial interaction with the user. /// </summary> public static void StartGame() { View.ShowBanner(); var showInstructions = GetYesOrNo(View.PromptShowInstructions); View.ShowSeparator(); if (showInstructions) { View.ShowInstructions(); } View.ShowSeparator(); }
/// <summary> /// Handles the initial interaction with the player. /// </summary> public static void StartGame() { View.ShowBanner(); View.PromptShowInstructions(); var input = Console.ReadLine(); if (input is null) { Environment.Exit(0); } if (input.ToUpperInvariant() != "NO") { View.ShowInstructions(); } View.ShowSeparator(); }