Conthist #79

Merged
rektdie merged 13 commits from conthist into main 2025-07-20 13:06:45 +02:00
Showing only changes of commit f666d1ea05 - Show all commits
+2 -2
View File
@@ -49,8 +49,8 @@ static int ScoreMove(Board &board, Move &move, int ply, SearchContext* ctx) {
if (ply > 0) { if (ply > 0) {
int prevType = ctx->ss[ply-1].pieceType; int prevType = ctx->ss[ply-1].pieceType;
int prevTo = ctx->ss[ply-1].moveTo; int prevTo = ctx->ss[ply-1].moveTo;
int pieceType = ctx->ss[ply].pieceType; int pieceType = board.GetPieceType(move.MoveFrom());
int to = ctx->ss[ply].moveTo; int to = move.MoveTo();
conthistScore = ctx->conthist[board.sideToMove][prevType][prevTo][pieceType][to]; conthistScore = ctx->conthist[board.sideToMove][prevType][prevTo][pieceType][to];
} }