Files
Stockfish/src
Marco Costalba c6f497f09d Fix small bug in move_attacks_square()
We test if the piece moved in 'to' attacks the square 's' with:

bit_is_set(attacks_from(piece, to), s))

But we should instead consider the new occupancy, changed after
the piece is moved, and so test with:

bit_is_set(attacks_from(piece, to, occ), s))

Otherwise we can miss some cases, for instance a queen in b1 that
moves in c1 is not detected to attack a1 while instead she does.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2011-10-30 19:31:50 +01:00
..
2011-07-24 08:53:36 +01:00
2011-10-03 14:18:30 +01:00
2011-10-03 14:18:30 +01:00
2011-10-03 14:18:56 +01:00
2011-10-02 10:16:59 +01:00
2011-10-20 07:06:05 +01:00
2011-04-28 08:00:34 +01:00
2011-05-23 20:20:31 +01:00
2011-10-17 21:07:00 +01:00
2011-10-03 14:18:57 +01:00
2011-10-03 14:18:57 +01:00
2011-10-03 14:18:57 +01:00
2011-07-16 22:59:14 +01:00
2011-10-22 16:06:59 +01:00
2011-10-02 10:16:59 +01:00
2011-04-11 12:35:54 +01:00
2011-10-22 13:17:24 +01:00
2011-03-10 08:08:34 +01:00
2011-10-29 18:01:56 +01:00
2011-10-16 23:56:25 +01:00
2011-07-02 14:04:33 +01:00
2011-10-22 16:06:59 +01:00
2011-10-02 10:16:59 +01:00