Ejemplo n.º 1
0
        public static void DisplayMainMenu()
        {
            NetworkManager networkManager = new NetworkManager(IPAddress.Parse("193.154.76.83"));

            string[] menuItems    = { "Join Game", "Create Game", "Help", "Exit" };
            int      menuPosition = DisplayMenu(menuItems);

            Game game = new Game(networkManager);

            switch (menuPosition)
            {
            case 0:
                game.JoinGame();
                break;

            case 1:
                game.CreateGame();
                break;

            case 2:
                break;

            case 3:
                break;
            }
        }