static void Main(string[] args) { HangmanGame game = new HangmanGame(); game.Play(); Console.ReadLine(); }
public static void Main(string[] args) { Console.WriteLine ("Starting game..."); HangmanGame game = new HangmanGame(); game.Play(); Console.ReadLine().ToUpper(); }
static void Main(string[] args) { bool playAgain = true; do { Console.Clear(); HangmanGame game = new HangmanGame(); game.Greeting(); game.Play(); game.EndGame(); } while (playAgain); }
public static void Main() { var game = new HangmanGame(); while (true) { DisplayIntroText(); var opt = GetMenuSelection(); switch (opt) { case 'X': return; // Quit game case 'N': game.Play(); break; default: AddWordToDictionary(); break; } } }