Skip to content

Commit

Permalink
Combine previous captures penalty when the move that fails hard is a …
Browse files Browse the repository at this point in the history
…capture and previous quiet moves penalty when the move that fails hard is a quiet move
  • Loading branch information
eduherminio committed Jan 14, 2024
1 parent 3135900 commit 1c0c0a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lynx/Search/NegaMax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ private int NegaMax(int depth, int ply, int alpha, int beta, bool parentWasNullM
for (int i = 0; i < visitedMovesCounter - 1; ++i)
{
var visitedMove = visitedMoves[i];
//if (!visitedMove.IsCapture()) // TODO: Penalize only quiets?
if (!visitedMove.IsCapture()) // TODO: Penalize only quiets?
{
var visitedMovePiece = visitedMove.Piece();
var visitedMoveTargetSquare = visitedMove.TargetSquare();
Expand Down

0 comments on commit 1c0c0a9

Please sign in to comment.