Пример #1
0
        /*static void Main()
        {
            printCKB();
            //printSKB();
            Console.ReadKey();
        }*/
        //Testing Culture Knowledgebase
        private static void printCKB()
        {
            KB_C CKB = new KB_C();

            List<Topic> CKBTopics = CKB.TopicList;
            Console.WriteLine("# TOPICS: " + CKBTopics.Count);
            Console.WriteLine("");

            foreach (Topic t in CKBTopics)
            {

                if (t.Name == TopicType.Friendly)
                {
                    Console.WriteLine("Topic: Friendly");
                }
                else if (t.Name == TopicType.Fun)
                {
                    Console.WriteLine("Topic: Fun");
                }
                else if (t.Name == TopicType.Player)
                {
                    Console.WriteLine("Topic: Related to Player");
                }
                else if (t.Name == TopicType.Scary)
                {
                    Console.WriteLine("Topic: Scary");
                }

                printSubjects(t);
            }
        }
Пример #2
0
 private void initializeKBs()
 {
     //Initialize the C_KB
     CKB = new KB_C();
     //Initialize the S_KB
     SKB = new KB_S();
 }