1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 11:39:15 +00:00

Use only history to score non captures

It seems gain is practically unuseful, so remove.

After 13554 games:
Mod vs Orig 2252 - 2319 - 8983 ELO -1 (+- 3.4)

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2011-04-16 10:25:22 +01:00
parent 068561f86a
commit 67b0d0b1cc

View file

@ -216,18 +216,15 @@ void MovePicker::score_captures() {
}
void MovePicker::score_noncaptures() {
// Score by history and max gain for the move.
Move m;
Piece piece;
Square from, to;
Square from;
for (MoveStack* cur = moves; cur != lastMove; cur++)
{
m = cur->move;
from = move_from(m);
to = move_to(m);
piece = pos.piece_on(from);
cur->score = H.value(piece, to) + H.gain(piece, to);
cur->score = H.value(pos.piece_on(from), move_to(m));
}
}