mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
Assorted trivial cleanups
No functional change
This commit is contained in:
@@ -60,6 +60,7 @@ Jacques B. (Timshel)
|
|||||||
Jan Ondruš (hxim)
|
Jan Ondruš (hxim)
|
||||||
Jared Kish (Kurtbusch)
|
Jared Kish (Kurtbusch)
|
||||||
Jarrod Torriero (DU-jdto)
|
Jarrod Torriero (DU-jdto)
|
||||||
|
Jean Gauthier (QuaisBla)
|
||||||
Jean-Francois Romang (jromang)
|
Jean-Francois Romang (jromang)
|
||||||
Jerry Donald Watson (jerrydonaldwatson)
|
Jerry Donald Watson (jerrydonaldwatson)
|
||||||
Jonathan Calovski (Mysseno)
|
Jonathan Calovski (Mysseno)
|
||||||
|
|||||||
+2
-2
@@ -1305,8 +1305,8 @@ bool Position::pos_is_ok() const {
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ( piece_on(castlingRookSquare[cr]) != make_piece(c, ROOK)
|
if ( piece_on(castlingRookSquare[cr]) != make_piece(c, ROOK)
|
||||||
|| castlingRightsMask[castlingRookSquare[cr]] != (cr)
|
|| castlingRightsMask[castlingRookSquare[cr]] != cr
|
||||||
|| (castlingRightsMask[square<KING>(c)] & (cr)) != (cr))
|
|| (castlingRightsMask[square<KING>(c)] & cr) != cr)
|
||||||
assert(0 && "pos_is_ok: Castling");
|
assert(0 && "pos_is_ok: Castling");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1050,7 +1050,7 @@ moves_loop: // When in check, search starts from here
|
|||||||
if (!pos.see_ge(move, Value(-(31 - std::min(lmrDepth, 18)) * lmrDepth * lmrDepth)))
|
if (!pos.see_ge(move, Value(-(31 - std::min(lmrDepth, 18)) * lmrDepth * lmrDepth)))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if ( (!givesCheck || !extension)
|
else if ( !(givesCheck && extension)
|
||||||
&& !pos.see_ge(move, Value(-199) * (depth / ONE_PLY))) // (~20 Elo)
|
&& !pos.see_ge(move, Value(-199) * (depth / ONE_PLY))) // (~20 Elo)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -1096,7 +1096,7 @@ moves_loop: // When in check, search starts from here
|
|||||||
if ((ss-1)->moveCount > 15)
|
if ((ss-1)->moveCount > 15)
|
||||||
r -= ONE_PLY;
|
r -= ONE_PLY;
|
||||||
|
|
||||||
// Decrease reduction if move has been singularly extended
|
// Decrease reduction if ttMove has been singularly extended
|
||||||
r -= singularLMR * ONE_PLY;
|
r -= singularLMR * ONE_PLY;
|
||||||
|
|
||||||
if (!captureOrPromotion)
|
if (!captureOrPromotion)
|
||||||
|
|||||||
Reference in New Issue
Block a user