mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 09:47:46 +00:00
Misc coding style fixes
a few comment and blank fixes. No functional change Closes #1141
This commit is contained in:
committed by
Joona Kiiski
parent
b73016bb41
commit
2c237da546
+3
-3
@@ -154,7 +154,7 @@ namespace {
|
||||
};
|
||||
|
||||
const Score ThreatByRook[PIECE_TYPE_NB] = {
|
||||
S(0, 0), S(0, 25), S(40, 62), S(40, 59), S( 0, 34), S(35, 48)
|
||||
S(0, 0), S(0, 25), S(40, 62), S(40, 59), S(0, 34), S(35, 48)
|
||||
};
|
||||
|
||||
// ThreatByKing[on one/on many] contains bonuses for king attacks on
|
||||
@@ -433,7 +433,7 @@ namespace {
|
||||
safe = ~pos.pieces(Them);
|
||||
safe &= ~ei.attackedBy[Us][ALL_PIECES] | (undefended & ei.attackedBy2[Them]);
|
||||
|
||||
b1 = pos.attacks_from<ROOK >(ksq);
|
||||
b1 = pos.attacks_from< ROOK>(ksq);
|
||||
b2 = pos.attacks_from<BISHOP>(ksq);
|
||||
|
||||
// Enemy queen safe checks
|
||||
@@ -632,7 +632,7 @@ namespace {
|
||||
|
||||
// Adjust bonus based on the king's proximity
|
||||
ebonus += distance(pos.square<KING>(Them), blockSq) * 5 * rr
|
||||
- distance(pos.square<KING>(Us ), blockSq) * 2 * rr;
|
||||
- distance(pos.square<KING>( Us), blockSq) * 2 * rr;
|
||||
|
||||
// If blockSq is not the queening square then consider also a second push
|
||||
if (relative_rank(Us, blockSq) != RANK_8)
|
||||
|
||||
Reference in New Issue
Block a user