コード例 #1
0
ファイル: Rating.cs プロジェクト: sscheele/chess-AI
 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;
 }