Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: advantages to board pointers

Author: Sean Empey

Date: 14:11:19 06/10/04

Go up one level in this thread


On June 10, 2004 at 16:56:55, Eric Oldre wrote:

>On June 10, 2004 at 16:51:00, Sean Empey wrote:
>
>>
>>if you are running the program in console for example and while it's searching
>>and you issue db (display board) you would see the board at the point the search
>>is at and not the current position because you are making the moves to the
>>global board. I actually used this technique in my first versions of Storm. I
>>now use a different board that the search uses.
>>
>
>That is something I had not considered sean. Currently my plan is to only
>support winboard/uci not command line. So I'm not sure if that along will affect
>my choice. But it's still something to consider.
>
>Do you have 2 global board objects? one that search uses, and one that holds the
>position in respect to the user? or when starting a new search do you create a
>new board and pass a pointer to it?

I have a pointer to a structure that I pass to the search function which
contains the board, piecelist, index of pieces, etc. When the program starts it
creates a pointer for each processor, so I basically have 4 on a 2 processor HT
machine as it detects 4 processors. After the search I update the main structure
(global board). When a new search starts it uses a pointer to the search
structures which are updated once the search completes.



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.