From 40ad5194aa08aa8baaa9c6b8625b17fea73a8074 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Fri, 25 Jun 2010 22:55:52 +0100 Subject: [PATCH] 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 --- src/movepick.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/movepick.cpp b/src/movepick.cpp index 63f77dba..20681108 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -221,7 +221,6 @@ void MovePicker::score_noncaptures() { Move m; Piece piece; Square from, to; - int hs; for (MoveStack* cur = moves; cur != lastMove; cur++) { @@ -229,14 +228,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 has always highest priority - if (hs > 0) - hs += 10000; - - // Gain table based scoring - cur->score = hs + 16 * H.gain(piece, to); + cur->score = H.move_ordering_score(piece, to); } } -- 2.39.2