Exemplo n.º 1
0
 public override int Evaluate(ref DecisionTree.Iterator iterator, IPDGame game)
 {
     if (_cond.Evaluate(iterator.Alpha, iterator.Beta))
     {
         iterator.Alpha += _alphaAdd;
         return(_left);
     }
     else
     {
         iterator.Beta += _betaAdd;
         return(_right);
     }
 }
Exemplo n.º 2
0
        public override int Evaluate(ref DecisionTree.Iterator iterator, IPDGame game)
        {
            int t = game.T - _k - iterator.K;

            if (t < 0)
            {
                return(DecisionTree.INVOKE_Q);
            }

            if (_x.Contains(game.GetPast(iterator.Player, t)))
            {
                iterator.Alpha += _alphaAdd;
                return(_left);
            }
            else
            {
                iterator.Beta += _betaAdd;
                return(_right);
            }
        }
Exemplo n.º 3
0
 public virtual int Evaluate(ref DecisionTree.Iterator iterator, IPDGame game)
 {
     throw new Exception("This node has not implemented an Evaluate function.");
 }
Exemplo n.º 4
0
 public override int Evaluate(ref DecisionTree.Iterator iterator, IPDGame game)
 {
     iterator.K++;
     return(_jumpTo);
 }