Ejemplo n.º 1
0
 public static int rateMoveability(bool isWhite, ChessBoard c, int possibleMoves, int depth, int material)
 {
     int counter = 0;
     counter += possibleMoves;
     if (possibleMoves == 0) //checkmate or stalemate
     {
         if (c.isInCheck(isWhite)) counter -= 200000 * depth;
         else counter -= 150000 * depth;
     }
     return counter;
 }