mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 02:27:00 +08:00
Use std library to sort moves
Functional change due to the fact that now pick_best() is stable, but should be no change in strenght. Example code and ideas by Rein Halbersma. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -245,7 +245,7 @@ inline Bitboard attack_span_mask(Color c, Square s) {
|
||||
|
||||
inline bool squares_aligned(Square s1, Square s2, Square s3) {
|
||||
return (BetweenBB[s1][s2] | BetweenBB[s1][s3] | BetweenBB[s2][s3])
|
||||
& ((1ULL << s1) | (1ULL << s2) | (1ULL << s3));
|
||||
& ( SetMaskBB[s1] | SetMaskBB[s2] | SetMaskBB[s3]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user