Author: Lex Loep
Date: 01:05:00 01/29/00
Go up one level in this thread
On January 28, 2000 at 17:21:00, Robert Hyatt wrote: >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. > I am using WriteFile followed by FlushFileBuffers, if it get's it later it's no problem, but sometimes it does not get it at all. The same happens with crafty running in a command prompt and just typing in the commands from the keyboard. It seem related to the 'new' command itself in combination with pondering. If I send the sequence "ponder off\n" "new\n" then it works fine. Lex > > > >>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.