Exemplo n.º 1
0
        public bool TakeAction(Node node, NodeAction action)
        {
            double res = 0;

            for (int x = 10; x < 10000; x++)
            {
                res = Math.Sqrt(x) * x;
            }


            if (action == null)
            {
                return(true);
            }
            LastAction = action;
            node.AvalableActions.Remove(action);
            return(action.Terminal);
        }
Exemplo n.º 2
0
 public void AddAction(NodeAction action) => AvalableActions.Add(action);