Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Tryng to add UCI functionality to Crafty

Author: AndrewFan

Date: 06:17:46 05/26/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

I added UCI commands to my chess engine in 2 days.  Here's what I did:


1. Added a UCI command parser.

2. If in UCI mode, call the UCI command processor, else call the Winboard/XBoard
processor for reading inputs.

3. For each UCI command, map it to it's WB equivalent and use the winboard
processor to execute this mapped command.

Simple.  Of course some UCI commands are not so simple to translate.


Andrew.



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.