Ejemplo n.º 1
0
        public static async Task <RandomOutcomeSearch> BuildAsync(Game Game, Action Action, ITreeActionWalker SearchMode = null)
        {
            var tree = new RandomOutcomeSearch(Game, SearchMode);
            await tree.RunAsync(Action);

            return(tree);
        }
Ejemplo n.º 2
0
        public static RandomOutcomeSearch Build(Game Game, Action Action, ITreeActionWalker SearchMode = null)
        {
            var tree = new RandomOutcomeSearch(Game, SearchMode);

            tree.Run(Action);
            return(tree);
        }