示例#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
        }