Author: Dann Corbit
Date: 17:52:09 05/25/04
Go up one level in this thread
On May 25, 2004 at 20:47:11, Mike Byrne wrote: >The UCI specs say : > >* all command strings the engine receives will end with '\n', > >Yet, Arena sends the double command "go movetime xxxx" -> I'm just wondering >why Arena insists on sending the go and movetime on one line - also - shouldn't >the command "movetime" be sent before the "go" command" ? > >It also sends the command "position startpos moves e2e4 e7e5 g1f3 <etc>" > >So the startpos == "setboard rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w >KQkq" I am not sure the best way to get Crafty to read the moves in within the >current Crafty commands. Any suggestions Since all commands must end with a newline, just use fgets() and check to see that you got a pointer back. Each string retrieved will be a command. Still needs parsing, but you know it will hold exactly one command.
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.