mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 09:13:08 +00:00
Clarify definition of capture_or_promotion()
No functional change.
This commit is contained in:
parent
431c3ac485
commit
47b89f2e37
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ inline bool Position::is_chess960() const {
|
||||||
inline bool Position::capture_or_promotion(Move m) const {
|
inline bool Position::capture_or_promotion(Move m) const {
|
||||||
|
|
||||||
assert(is_ok(m));
|
assert(is_ok(m));
|
||||||
return type_of(m) ? type_of(m) != CASTLING : !empty(to_sq(m));
|
return type_of(m) != NORMAL ? type_of(m) != CASTLING : !empty(to_sq(m));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool Position::capture(Move m) const {
|
inline bool Position::capture(Move m) const {
|
||||||
|
|
Loading…
Add table
Reference in a new issue