From 337ec0f3d0b402782c3704cc251c209393047dd9 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Wed, 3 Feb 2010 19:36:53 +0100 Subject: [PATCH] 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 --- src/movepick.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/movepick.cpp b/src/movepick.cpp index 638f8175..901aa60e 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -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); } } -- 2.39.2