예제 #1
0
파일: Baker.cs 프로젝트: xdrie/DuckMind
        public string act()
        {
            think();
            // choose the highest ranked option
            var chosen = reasoner.choose(reasonerResults);

            // execute the action
            chosen.action();
            // return the tag
            return(chosen.tag);
        }
예제 #2
0
파일: ThinkSystem.cs 프로젝트: xdrie/Sor
        protected override void makePlans()
        {
            // run the utility ai planner
            var resultTable = reasoner.execute();

            // store plan log
            state.updatePlanLog(resultTable);

            var chosen = reasoner.choose(resultTable); // pick the best-scored option

            chosen.action();                           // execute the action
        }