Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Crafty does not alway respond to "new" command

Author: Robert Hyatt

Date: 14:21:00 01/28/00

Go up one level in this thread


On January 28, 2000 at 15:44:03, Lex Loep wrote:

>While working on my winboard adapter I run across this strange problem,
>when a new game command is given on the GUI menus, the winboard
>adapter translates this to a "new\n" be send to the winboard engine
>crafty 17.3
>normally after 'new' crafty comes back with tellics .. and kibitz...
>not in this case, even giving 3 times new in a row, nothings comes back.
>Then when I pass the first move to crafty, it certainly remembers all
>the 'new' commands and shows all the tel and kib lines 3 times followed
>by the moves.
>Now in the above case there is no real problem, but if you play a few
>moves until it is out the opening book, then give 'new' , the new command
>is never recognised, then playing the first move is seen as illegal. then
>another 'new' command brings everything back.
>I first though there is some problem in hanlding the pipes from the
>winboard adapter to crafty, but I could not find anything wrong.
>
>so I did the same test starting crafty standalone, gave it the following
>commands:
>


are you fflushing the buffer on output?  Or have you set the buffer size
to zero.  Crafty doesn't do any buffering at all, using only read() and
write() to talk thru the pices.  If you don't flush() after writing "new\n"
I won't get it until later.




>xboard
>e4
>---- got back move e7e5
>e4
>---- got back move g8f6
>h4
>---- out of book, got back move f6e4
>new
>----  no response here
>e4
>----  Illegal move: e4   ??????
>
>Do I miss something, is this normal ?  Crafty 15.x has the same behaviour.
>
>Platform is NT 4 / SP6 / 128 MB
>
>
>Lex



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.