Merge pull request #63 from rektdie/history-bonus
diff history bonus formula | bench 4333527
This commit was merged in pull request #63.
This commit is contained in:
1 file changed
+2
-1
+2
-1
@@ -373,10 +373,11 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
|||||||
ctx.killerMoves[1][ply] = ctx.killerMoves[0][ply];
|
ctx.killerMoves[1][ply] = ctx.killerMoves[0][ply];
|
||||||
ctx.killerMoves[0][ply] = currMove;
|
ctx.killerMoves[0][ply] = currMove;
|
||||||
|
|
||||||
int bonus = depth * depth;
|
int bonus = 300 * depth - 250;
|
||||||
|
|
||||||
ctx.history.Update(board.sideToMove, currMove, bonus);
|
ctx.history.Update(board.sideToMove, currMove, bonus);
|
||||||
|
|
||||||
|
// Malus
|
||||||
for (int moveIndex = 0; moveIndex < seenQuietsCount - 1; moveIndex++) {
|
for (int moveIndex = 0; moveIndex < seenQuietsCount - 1; moveIndex++) {
|
||||||
ctx.history.Update(board.sideToMove, seenQuiets[moveIndex], -bonus);
|
ctx.history.Update(board.sideToMove, seenQuiets[moveIndex], -bonus);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user