mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Use only history to score non-captures
It seems there is absolutely no difference in using gains. After 7025 games at 5"+0 Mod vs Orig +1903 =3236 -1886 (+1 ELO) Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
f5ef5632ff
commit
40ad5194aa
1 changed files with 1 additions and 9 deletions
|
@ -221,7 +221,6 @@ void MovePicker::score_noncaptures() {
|
||||||
Move m;
|
Move m;
|
||||||
Piece piece;
|
Piece piece;
|
||||||
Square from, to;
|
Square from, to;
|
||||||
int hs;
|
|
||||||
|
|
||||||
for (MoveStack* cur = moves; cur != lastMove; cur++)
|
for (MoveStack* cur = moves; cur != lastMove; cur++)
|
||||||
{
|
{
|
||||||
|
@ -229,14 +228,7 @@ void MovePicker::score_noncaptures() {
|
||||||
from = move_from(m);
|
from = move_from(m);
|
||||||
to = move_to(m);
|
to = move_to(m);
|
||||||
piece = pos.piece_on(from);
|
piece = pos.piece_on(from);
|
||||||
hs = H.move_ordering_score(piece, to);
|
cur->score = H.move_ordering_score(piece, to);
|
||||||
|
|
||||||
// Ensure history has always highest priority
|
|
||||||
if (hs > 0)
|
|
||||||
hs += 10000;
|
|
||||||
|
|
||||||
// Gain table based scoring
|
|
||||||
cur->score = hs + 16 * H.gain(piece, to);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue