added 2ply conthist to fp | bench 8879438
This commit is contained in:
1 parent
e46076116f
commit
1e073bb30d
1 file changed
+5
-1
+5
-1
@@ -461,8 +461,12 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
|||||||
// that a quiet move will help us so we skip them
|
// that a quiet move will help us so we skip them
|
||||||
int historyScore = ctx->history[board.sideToMove][currMove.MoveFrom()][currMove.MoveTo()];
|
int historyScore = ctx->history[board.sideToMove][currMove.MoveFrom()][currMove.MoveTo()];
|
||||||
|
|
||||||
if (ply > 0)
|
if (ply > 0) {
|
||||||
historyScore += ctx->conthist.GetOnePly(board, currMove, ctx, ply);
|
historyScore += ctx->conthist.GetOnePly(board, currMove, ctx, ply);
|
||||||
|
|
||||||
|
if (ply > 1)
|
||||||
|
historyScore += ctx->conthist.GetTwoPly(board, currMove, ctx, ply);
|
||||||
|
}
|
||||||
|
|
||||||
int fpMargin = 100 * depth + historyScore / 32;
|
int fpMargin = 100 * depth + historyScore / 32;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user