mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Better document square flipping helpers
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -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