Beispiel #1
0
        static void Main(string[] args)
        {
            RuleParser ruleParser = new RuleParser();
            FactParser factParser = new FactParser();
            ESProvider esProvider = new ESProvider(factParser, ruleParser);

            ruleParser.readRules();
            esProvider.CollectAnswers();

            esProvider.Evaluate();
            Console.ReadLine();
        }
Beispiel #2
0
        public void Program_menu(RuleParser ruleParser, ESProvider exsys, FactParser fparser)
        {
            string[] choices = new string[] { "Gimme a house", "Exit" };
            bool     quit    = false;
            string   choice  = "";

            while (!quit)
            {
                Print_menu(choices);
                choice = Console.ReadLine();
                if (choice == "q" || choice == "Q")
                {
                    quit = true;
                }
            }
        }