mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 02:57:11 +08:00
Revert "Clarify the mapping of files to queenside"
This reverts commit 7756344d5d.
This commit is contained in:
@@ -119,7 +119,7 @@ void init() {
|
||||
|
||||
for (Square s = SQ_A1; s <= SQ_H8; ++s)
|
||||
{
|
||||
File f = map_to_queenside(file_of(s));
|
||||
File f = std::min(file_of(s), ~file_of(s));
|
||||
psq[ pc][ s] = score + (type_of(pc) == PAWN ? PBonus[rank_of(s)][file_of(s)]
|
||||
: Bonus[pc][rank_of(s)][f]);
|
||||
psq[~pc][~s] = -psq[pc][s];
|
||||
|
||||
Reference in New Issue
Block a user