mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 10:57:43 +00:00
Rename castling flag to castling right
This is a more conventional naming as reported also in: http://chessprogramming.wikispaces.com/Castling+rights No functional change.
This commit is contained in:
+2
-2
@@ -48,7 +48,7 @@ struct Entry {
|
||||
template<Color Us>
|
||||
Score king_safety(const Position& pos, Square ksq) {
|
||||
|
||||
return kingSquares[Us] == ksq && castlingFlags[Us] == pos.can_castle(Us)
|
||||
return kingSquares[Us] == ksq && castlingRights[Us] == pos.can_castle(Us)
|
||||
? kingSafety[Us] : update_safety<Us>(pos, ksq);
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ struct Entry {
|
||||
Bitboard pawnAttacks[COLOR_NB];
|
||||
Square kingSquares[COLOR_NB];
|
||||
int minKPdistance[COLOR_NB];
|
||||
int castlingFlags[COLOR_NB];
|
||||
int castlingRights[COLOR_NB];
|
||||
Score value;
|
||||
int semiopenFiles[COLOR_NB];
|
||||
Score kingSafety[COLOR_NB];
|
||||
|
||||
Reference in New Issue
Block a user