コード例 #1
0
 private int checkmate(ChessBoard board, int depth)
 {
     return((board.AI_is_checkmated() ? CHECK_MATE_BONUS * depthBonus(depth) : 0)
            - (board.HUMAN_is_checkmated() ? CHECK_MATE_BONUS * depthBonus(depth) : 0));
 }