Article View: gnu.chess
Article #5129KILLT & HISTORY
From: Chua Kong Sian
Date: Sat, 19 Feb 1994 06:41
Date: Sat, 19 Feb 1994 06:41
29 lines
1747 bytes
1747 bytes
At present, the KILLT and HISTORY heuristics overlapped (see genmoves.c). I would like to suggest that these two heuristics be separated. Let HISTORY only refer to history data and nothing to do with killer moves. What this means is that in MoveList() and VMoveList(), those #ifdef HISTORY blocks should be commented out (or removed). This makes it necessary to include -DKILLT in the Makefile to activate killer moves heuristics. The history heuristic can then be activated using -DHISTORY and this will not interfere with the killer heuristics. I also think that the current implementation of HISTORY is buggy. After some experimentation, this is what I would like to suggest. In search(), at the bottom where the history[] array is being calculated, replace if (history[j] < HISTORYLIM) history[j] += (unsigned short) 1 << depth; with if (history[j] < ((unsigned short) 1 << depth)) history[j] = ((unsigned short) 1 << depth); So instead of incrementing history[j] everytime, we set history[j] to the maximum value that is seen. In a few test positions, this gives much better cuts than the original code. Kong Sian
Technical Details
Message-ID:
<2k4c9u$ivn@nuscc.nus.sg>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!newsserver.jvnc.net!raffles.technet.sg!nuscc.nus.sg!nsrccksShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,316f8ea222d08d03,start X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1994-02-18 22:41:02 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!newsserver.jvnc.net!raffles.technet.sg!nuscc.nus.sg!nsrccks From: nsrccks@leonis.nus.sg (Chua Kong Sian) Newsgroups: gnu.chess Subject: KILLT & HISTORY Date: 19 Feb 1994 06:41:02 GMT Organization: National University of Singapore Lines: 29 Message-ID: <2k4c9u$ivn@nuscc.nus.sg> NNTP-Posting-Host: leonis.nus.sg X-Newsreader: TIN [version 1.2 PL0]