mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Score non-captures only by history
Now that history can go negative and is almost alwyas non zero we have no more reasons to use also psqt term. After 994 games at 1+0 Mod vs Orig +204 =597 -193 +4 ELO Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
5b1043ee11
commit
337ec0f3d0
1 changed files with 1 additions and 9 deletions
|
@ -213,7 +213,6 @@ void MovePicker::score_noncaptures() {
|
|||
Move m;
|
||||
Piece piece;
|
||||
Square from, to;
|
||||
int hs;
|
||||
|
||||
for (MoveStack* cur = moves; cur != lastMove; cur++)
|
||||
{
|
||||
|
@ -221,14 +220,7 @@ void MovePicker::score_noncaptures() {
|
|||
from = move_from(m);
|
||||
to = move_to(m);
|
||||
piece = pos.piece_on(from);
|
||||
hs = H.move_ordering_score(piece, to);
|
||||
|
||||
// Ensure history is always preferred to pst
|
||||
if (hs > 0)
|
||||
hs += 1000;
|
||||
|
||||
// pst based scoring
|
||||
cur->score = hs + mg_value(pos.pst_delta(piece, from, to));
|
||||
cur->score = H.move_ordering_score(piece, to);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue