Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Porting Crafty

Author: Robert Hyatt

Date: 22:04:24 01/15/98

Go up one level in this thread


On January 15, 1998 at 20:42:15, Peter W. Gillgasch wrote:

>Bob,
>
>how do you do CheckInput() ? Is it ok to block the I/O if it says "user
>presses a key" ? If yes, then it is easy...
>
>BTW Apple's MrC 2.0 has long long as well (all Mac compilers have 'em
>now since they are in the C9x draft). It is probably better to use that
>one. Last time I checked CW didn't inline long long ops at all...
>
>-- Peter

yes.  I call CheckInput().  If it returns a "1" then I do a normal
read to get the move or command.  If it returns a "0" I keep searching
normally.  Not the cleanest way, but the only way to do something that
will work under DOS.  Cray Blitz used two processes, one for input, one
for the engine.  Cleaner, but definitely "non-dos".. :)



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.