Esempio n. 1
0
        private static void BTMMMenu()
        {
            var userChoice = 0;

            while (true)
            {
                userChoice = GetUserChoice(
                    "BTMM Menu", new[]
                {
                    "<- Back",
                    BTMMAlgorithm.IsModelReady() ? "* Status: READY" : "* Status: NOT READY!!",
                    "Train",
                    "Load",
                    "Read Log"
                }, userChoice);

                if (userChoice == 0)
                {
                    return;
                }
                if (userChoice == 1)
                {
                    CheckModelReady();
                }
                else if (userChoice == 2)
                {
                    TrainMenu();
                }
                else if (userChoice == 3)
                {
                    LoadMenu();
                }
                else
                {
                    ConsoleUtil.WriteAndWaitKey(GameLogger.ReadLog());
                }
            }
        }