mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Avoid explicit bitwise operators
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
7f4c7cd785
commit
e7505324f6
1 changed files with 1 additions and 2 deletions
|
@ -677,8 +677,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
|||
Score score = SCORE_ZERO;
|
||||
|
||||
// Undefended minors get penalized even if not under attack
|
||||
undefendedMinors = pos.pieces(Them)
|
||||
& (pos.pieces(BISHOP) | pos.pieces(KNIGHT))
|
||||
undefendedMinors = pos.pieces(Them, BISHOP, KNIGHT)
|
||||
& ~ei.attackedBy[Them][ALL_PIECES];
|
||||
|
||||
if (undefendedMinors)
|
||||
|
|
Loading…
Add table
Reference in a new issue