Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Listening to I/O using a separate thread?

Author: Uri Blass

Date: 06:47:43 02/05/03

Go up one level in this thread


On February 05, 2003 at 08:49:43, Steve Maughan wrote:

>Russel,
>
>Thanks this is a big help - I'd also be interested to hear from other as to what
>they do / recommend.
>
>Regards,
>
>Steve

I may post my code for supporting winboard commands but I need to do things more
clear before it.

The question is if people are interested because I got the impression that
nobody is interested because the last time when I posted information about it I
got no comments about it.

I basically have some loops:

loops that are done not during calculating and the function choosemove is called
from them:

loop 1:wait passively to winboard command(in force mode or in games with ponder
off)
loop 2:for analyze mode after you get a move from the player and before you
decide if to analyze(you may decide not to analyze if the position is already
mate position)

You are at loop 2 also if you already finish calculating and found a mate and
wait passively in analysis mode.

loop 3:for starting and finsihing to ponder
after making your move you are at that loop and usually starts to calculate
in order to go back later to this loop.

You go back to that loop after you get a move from the opponent that you do not
expect or after you finished to ponder for other reason like finding a mate or
getting the expected move and finishing to calculate your reply.


loops that are done during calculating(not sure if loops is correct here because
I have switch with 3 cases).

Every 8192 nodes you look for winboard commands and decide if to finish the
search and go back to the loop that called the search based on the commands that
you get.

There are special instructions for 3 different cases:

1)play_mode
2)ponder_mode
3)analysis_mode

Uri



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.