Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: To programmers: Hints for testing after a partial rewrite

Author: Mridul Muralidharan

Date: 02:54:01 12/09/03

Go up one level in this thread


On December 08, 2003 at 21:30:56, Federico Corigliano wrote:

>Hi to all
>
>I rewrote some parts of my engine (about 40%), including move generation and
>data structures, and I want check them for instability, illegal moves, crashes,
>etc.
>Of course a great number of games against other engines is in my todo list, but,
>you can recommend me some kind of special test to help in the bug checking?
>Also, once that I have a bug, are there special utilities that you can recommend
>me to help me in the debugging and localization of the bug?
>
>Regards,
>Federico

For move generation testing : perft is useful.
For eval testing : using mirrored fen's are useful.
Also , in case you want to find out uninitialised arrays/variables , etc : test
bettwen debug and release versions - the node count , pv , stats (like cutoff
rates , etc) should be identical.
Also , if you support multiple platform , test between platforms and ensure that
the output remains the same for same search parameters.
Using a boundschecker helps to indentify obvious bounds bugs.
If your program is parallel - becomes more complicated ...

Hope this helps,
Mridul



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.