static void Main(string[] args) { ConsoleKeyInfo choice; bool isExit = false; do { Console.Clear(); Console.WriteLine("Logistics Simulator"); Console.WriteLine("Select an AI"); Console.WriteLine("1) Ryskamp Learning Machine \n2) Encog \n3) Exit"); choice = Console.ReadKey(); switch (choice.KeyChar) { case '1': RlmLogistics.LogisticTrain(); break; case '2': EncogLogistics.LogisticTrain(); break; case '3': isExit = true; break; default: Console.WriteLine("\nInvalid input try again..."); System.Threading.Thread.Sleep(1000); break; } } while (!isExit); }
static void Main(string[] args) { // NOTE: to display data persistence progress, uncomment line 39 in RlmLogistics.cs Console.WriteLine("Logistics Simulator"); var logist = new RlmLogistics(); logist.LogisticTrain(); }