mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Remove SEE optimizations
Don't seem to help, perhaps because we return an approximate SEE score instead of the real negative score so that we have some bad capture or evasion sub-optimal ordering that compensates the speed up. Anyhow after 999 games at 1+0 Mod vs Orig +240 =514 -245 -2 ELO So almost no harm to remove and make the code simpler. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -1171,8 +1171,8 @@ namespace {
|
||||
Square b8 = relative_square(us, (square_file(s) == FILE_A) ? SQ_B8 : SQ_G8);
|
||||
|
||||
if ( pos.piece_on(b6) == piece_of_color_and_type(opposite_color(us), PAWN)
|
||||
&& pos.see(s, b6, false) < 0
|
||||
&& pos.see(s, b8, false) < 0)
|
||||
&& pos.see(s, b6) < 0
|
||||
&& pos.see(s, b8) < 0)
|
||||
{
|
||||
ei.mgValue -= Sign[us] * TrappedBishopA7H7Penalty;
|
||||
ei.egValue -= Sign[us] * TrappedBishopA7H7Penalty;
|
||||
|
||||
Reference in New Issue
Block a user