Пример #1
0
        static void Main(string[] args)
        {
            try
            {
                var filePath = args[0];
                var url      = args[1];

                var menu        = MenuWorker.GetMenu(filePath);
                var updatedMenu = MenuWorker.Navigate(url, menu);
                var output      = MenuWorker.PrintMenu(updatedMenu);

                Console.WriteLine(output);
            }
            catch (IndexOutOfRangeException ex)
            {
                Console.WriteLine($"Invalid number of arguments provided.  Please enter a valid path for your first argument and a valid navigation path for the second argument. Exception message: {ex.Message}");
            }
            finally
            {
                Console.ReadKey();
            }
        }
Пример #2
0
 public RockPaperScissors(MenuWorker menu) : base(menu)
 {
     m_bot = new Bot();
 }
Пример #3
0
 public ConsoleGameBase(MenuWorker menu)
 {
     NeedToPlay = true;
     m_menu     = menu;
 }