X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.cpp;h=5e0924830740a81a4b09262ac433b9f425d41fbd;hb=74fd57220e4e5a214761adc2d12335a12bef56f3;hp=67ee145c11efecb3500a26843db96ff1acf9c354;hpb=a5c1b3e8f68a9c98e6be1f90e7d0295d05c685de;p=stockfish diff --git a/src/position.cpp b/src/position.cpp index 67ee145c..5e092483 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1633,13 +1633,6 @@ int Position::see(Square from, Square to) const { attackers &= occ; // Remove the moving piece - // If we don't have any attacker but the moving piece (common case) - // then we loose our piece and gain the opponent attacked one. - // Note that this is not perfect! It does not detect x-rays of - // an our piece behind an opposite one. But is a very rare case. - if ((attackers & pieces_of_color(us)) == EmptyBoardBB) - return seeValues[capture] - seeValues[piece]; - // The destination square is defended, which makes things rather more // difficult to compute. We proceed by building up a "swap list" containing // the material gain or loss at each stop in a sequence of captures to the