Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Question about sub-programs

Author: William H Rogers

Date: 15:39:58 11/09/05

Go up one level in this thread


As a matter of convience chess programs are broken down into subprograms for a
variety of reasons. It makes it much easier to debug and work on smaller modules
such as Generate moves, evaluate moves, set up tables used by different modles
in the main program and finally select the best move based upon either time
allowed or depth of search. There are many more sub modules that many different
chess programs use but the main purpose of using small modules is to make the
programmng easier to understand and to work on.
To use an anology, let us say that the search or genmoves subroutine somehow
misses a few moves, it then becomes much easier to just examine the code that
handles this part of the program rather than search the entire program trying to
find the possible bug.
Hope this somewhat simpleflies the problem for you. Although the answer is not
easy in some respects over all it becomes much easier when broken into smaller
pieces.
Bill



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.