예제 #1
0
파일: AI.cs 프로젝트: georgelbaxter/chessAI
 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();
 }