mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 09:47:46 +00:00
Better document square flipping helpers
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+2
-2
@@ -409,7 +409,7 @@ Bitboard Position::attackers_to(Square s, Bitboard occ) const {
|
||||
|
||||
Bitboard Position::attacks_from(Piece p, Square s, Bitboard occ) {
|
||||
|
||||
assert(square_is_ok(s));
|
||||
assert(is_ok(s));
|
||||
|
||||
switch (type_of(p))
|
||||
{
|
||||
@@ -427,7 +427,7 @@ Bitboard Position::attacks_from(Piece p, Square s, Bitboard occ) {
|
||||
bool Position::move_attacks_square(Move m, Square s) const {
|
||||
|
||||
assert(is_ok(m));
|
||||
assert(square_is_ok(s));
|
||||
assert(is_ok(s));
|
||||
|
||||
Bitboard occ, xray;
|
||||
Square from = from_sq(m);
|
||||
|
||||
Reference in New Issue
Block a user