Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Winboard

Author: James Robertson

Date: 20:24:12 12/19/98

Go up one level in this thread


On December 19, 1998 at 22:24:26, Chris Moreton wrote:

>This was the last problem that I had to figure out and after some trial and
>error and a peek at the Crafty source I am using the following code which just
>detects if a message has been received and quits the search routine so that the
>command can be read from the pipe in the main part of the program.
>
>if (Pondering) {
>  DWORD dw;
>  static HANDLE inh = GetStdHandle(STD_INPUT_HANDLE);
>  GetConsoleMode(inh, &dw);
>  PeekNamedPipe(inh, NULL, 0, NULL, &dw, NULL);
>  if (dw!=NULL && dw>0) ExitWithMove();
>}
>
>Chris

Thanks!! I'll try it out.

James



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.