mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Renaming some variables in code
Implements renaming suggestions by Marco Costalba, Günther Demetz, Gontran Lemaire, Ronald de Man, Stéphane Nicolet, Alain Savard, Joost VandeVondele, Jerry Donald Watson, Mike Whiteley, xoto10, and I hope that I haven't forgotten anybody. Perpetual renaming thread for suggestions: https://github.com/official-stockfish/Stockfish/issues/1426 No functional change.
This commit is contained in:
@@ -68,7 +68,7 @@ namespace {
|
||||
&& pos.non_pawn_material(us) >= RookValueMg;
|
||||
}
|
||||
|
||||
bool is_KBPsKs(const Position& pos, Color us) {
|
||||
bool is_KBPsK(const Position& pos, Color us) {
|
||||
return pos.non_pawn_material(us) == BishopValueMg
|
||||
&& pos.count<BISHOP>(us) == 1
|
||||
&& pos.count<PAWN >(us) >= 1;
|
||||
@@ -165,7 +165,7 @@ Entry* probe(const Position& pos) {
|
||||
// case we don't return after setting the function.
|
||||
for (Color c = WHITE; c <= BLACK; ++c)
|
||||
{
|
||||
if (is_KBPsKs(pos, c))
|
||||
if (is_KBPsK(pos, c))
|
||||
e->scalingFunction[c] = &ScaleKBPsK[c];
|
||||
|
||||
else if (is_KQKRPs(pos, c))
|
||||
|
||||
Reference in New Issue
Block a user