Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: The key to improving a program

Author: Volker Böhm

Date: 15:19:10 05/27/04

Go up one level in this thread


On May 26, 2004 at 12:05:59, Uri Blass wrote:

>On May 26, 2004 at 11:52:31, Volker Böhm wrote:
>
>>The following helps and are not mentioned allready:
>>
>>1. add a flag or a compiler option to remove any pruing or extending code from
>>your search. The result should be a perft command! I think it is very powerful
>>to be able to check the real movegen and search with this test.
>
>I have a special function for perft.
>removing pruning or extension will give the perft command only if you do not use
>alphabeta and I suspect that programmers need to change some code for that
>purpose and removing lines is not enough(I have return alpha or return beta in
>my code and I probably need to change to fail soft if I want to calculate perft
>by removing code).
>
>Uri

I have a special perft function too. But using your normal search prevents you
from making some bugs there. For perft you shouldn´t do cutoffs and extensions.
beta cutoff is a cutoff, just print
#ifndef PERFT
return BETA
#endif
...
or
if (!cPerft) return BETA
(better to read, modern compiler will evaluate (!cPerft) to nothing if it is a
constant).





This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.