mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36:33 +08:00
PSQT access functions can be static
Also renamed history access value in something more in line with the meaning. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -228,7 +228,7 @@ void MovePicker::score_noncaptures() {
|
||||
from = move_from(m);
|
||||
to = move_to(m);
|
||||
piece = pos.piece_on(from);
|
||||
cur->score = H.move_ordering_score(piece, to);
|
||||
cur->score = H.value(piece, to);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -253,7 +253,7 @@ void MovePicker::score_evasions_or_checks() {
|
||||
cur->score = pos.midgame_value_of_piece_on(move_to(m))
|
||||
- pos.type_of_piece_on(move_from(m)) + HistoryMax;
|
||||
else
|
||||
cur->score = H.move_ordering_score(pos.piece_on(move_from(m)), move_to(m));
|
||||
cur->score = H.value(pos.piece_on(move_from(m)), move_to(m));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user