Exemple #1
0
 private double evaluateChildren(MoveNode currentNode, int depth)
 {
     List<double> ratings = new List<double>();
     foreach (MoveNode child in currentNode.Children)
         ratings.Add(child.Move.Rating);
     if (depth % 2 == 1)
         return ratings.Min();
     else
         return ratings.Max();
 }