Conthist #79

Merged
rektdie merged 13 commits from conthist into main 2025-07-20 13:06:45 +02:00
Showing only changes of commit 33bafd461a - Show all commits
+4 -5
View File
@@ -36,14 +36,13 @@ static int ScoreMove(Board &board, Move &move, int ply, SearchContext* ctx) {
targetType = Pawn; targetType = Pawn;
} }
return 50000 + (20000 * (SEE(board, move, -100))) + moveScoreTable[attackerType][targetType]; return 50000 * ((SEE(board, move, -100))) + moveScoreTable[attackerType][targetType];
} else { } else {
if (ctx->killerMoves[0][ply] == move) { if (ctx->killerMoves[0][ply] == move) {
return 21000; return 41000;
} else if (ctx->killerMoves[1][ply] == move) { } else if (ctx->killerMoves[1][ply] == move) {
return 20000; return 40000;
} else { } else {
// Max 16384
int historyScore = ctx->history[board.sideToMove][move.MoveFrom()][move.MoveTo()]; int historyScore = ctx->history[board.sideToMove][move.MoveFrom()][move.MoveTo()];
int conthistScore = 0; int conthistScore = 0;
@@ -56,7 +55,7 @@ static int ScoreMove(Board &board, Move &move, int ply, SearchContext* ctx) {
conthistScore = ctx->conthist[board.sideToMove][prevType][prevTo][pieceType][to]; conthistScore = ctx->conthist[board.sideToMove][prevType][prevTo][pieceType][to];
} }
return historyScore + conthistScore; return 20000 + historyScore + conthistScore;
} }
} }