Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Separate Thread or plain Loop??

Author: Steve Maughan

Date: 06:57:02 12/18/01

Go up one level in this thread


Tony,

>forget the thread stuff. Basicly, pondering is quite easy.

Thanks for the input.  So do you have a inner loop that tests for moves by the
opponent and then response accordingly i.e. changes the board and calls the
search routine?  At the moment I have a search routine that performs the search
and makes the move.  Since it doesn't ponder, it then waits until the opponent
moves which triggers another search - an so on.  With pondering I want to start
a search immediately after the last one has ended and I don't want a pointless
recursive call to 'Search'.  Therefore I think I'm going to need a loop that
check and manages the status of the game and seach.  Is this what you do?

Regards,

Steve

PS  My Delphi program (of no name) is finally starting to surface after another
major rewrite.  I'm basically happy enough with the general structure and speed.
 I need to write a proper evaluation function but at the moment it can process
~450 kn/s in the middlegame and 1700 kn/s in the endgame using a simple piece
square table (1.5 GHz P4).  I guess this will at least half when a decent
evaluation function is added.  Once I have it Winboard compatible and a small
opening book I'll try and enter some competitions time permitting!



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.