From 25286e9932f7e28e1d0cddffb0b1e7df3232de7c Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Mon, 18 May 2009 09:51:46 +0200 Subject: [PATCH] Reduce history 4 times instead of 2 when reach the maximum This gives more weight to newer entries. After 999 games at 1'+ 0" we have: Mod vs Orig +233/-208/=558 51.25% +9 ELO Confirmed by another session of 437 games: Mod vs Orig +109/-92/=236 51.95% +14 ELO Signed-off-by: Marco Costalba --- src/history.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/history.cpp b/src/history.cpp index 6fe222fe..edd5cdb7 100644 --- a/src/history.cpp +++ b/src/history.cpp @@ -64,7 +64,7 @@ void History::success(Piece p, Square to, Depth d) { if (history[p][to] >= HistoryMax) for (int i = 0; i < 16; i++) for (int j = 0; j < 64; j++) - history[i][j] /= 2; + history[i][j] /= 4; } -- 2.39.2