History #19

Merged
rektdie merged 6 commits from history into legalMovegen 2025-03-15 12:47:47 +01:00
Showing only changes of commit f9bc72fff8 - Show all commits
+3 -3
View File
@@ -24,7 +24,7 @@ Stopwatch sw;
static int ScoreMove(Board &board, Move &move) { static int ScoreMove(Board &board, Move &move) {
TTEntry *current = TT.GetRawEntry(board.hashKey); TTEntry *current = TT.GetRawEntry(board.hashKey);
if (current->bestMove == move) { if (current->bestMove == move) {
return 50000; return 500000;
} }
if (move.IsCapture()) { if (move.IsCapture()) {
@@ -38,9 +38,9 @@ static int ScoreMove(Board &board, Move &move) {
return moveScoreTable[attackerType][targetType] + 10000; return moveScoreTable[attackerType][targetType] + 10000;
} else { } else {
if (killerMoves[0][ply] == move) { if (killerMoves[0][ply] == move) {
return 9000; return 490000;
} else if (killerMoves[1][ply] == move) { } else if (killerMoves[1][ply] == move) {
return 8000; return 480000;
} else { } else {
return historyMoves[board.sideToMove][move.MoveFrom()][move.MoveTo()]; return historyMoves[board.sideToMove][move.MoveFrom()][move.MoveTo()];
} }