Example #1
0
        static void Main(string[] args)
        {
            HangmanGame game = new HangmanGame();

            game.Play();
            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            HangmanGame game = new HangmanGame();
            game.Play();

            Console.ReadLine();
        }
Example #3
0
        public static void Main(string[] args)
        {
            Console.WriteLine ("Starting game...");
            HangmanGame game = new HangmanGame();

            game.Play();
            Console.ReadLine().ToUpper();
        }
Example #4
0
        static void Main(string[] args)
        {
            bool playAgain = true;

            do
            {
                Console.Clear();
                HangmanGame game = new HangmanGame();
                game.Greeting();
                game.Play();
                game.EndGame();
            } while (playAgain);
        }
Example #5
0
        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;
                }
            }
        }