Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: UCI support: arena "stop" command missing \0 or \n ?

Author: F. Huber

Date: 07:28:15 01/27/05

Go up one level in this thread


On January 27, 2005 at 10:09:07, Daniel Mehrmannn wrote:

>Hello,
>
>at the moment i adding UCI support to my engine and using arena 1.08 as
>reference plattform. Its work well at the moment (i'm not ready).
>
>But i have a problem:
>
>After "go infinite" will be come the "stop" command if the user/gui want end the
>analyze. And i'm suprised that my engine do nothing. If i send "test/dummy"
>strings to my engine i see "bestmove". I also see that my engine got the command
>and stop search and whisper the last result. (see log)
>
>It looks like so that the command "stop" missing a null termination (\0) or a
>new line  (\n). Is this known ?

Hi Daniel,

I don´t think that Arena is missing _anything_, otherwise dozens of other
UCI engines won´t work properly!

BTW the correct string termination in UCI protocol is NOT ´\0´ but simply
a ´\n´ - see the following UCI specification:

* all command strings the engine receives will end with '\n',
  also all commands the GUI receives should end with '\n',
  Note: '\n' can be 0x0c or 0x0a0c or any combination depending on your OS.
  If you use Engine und GUI in the same OS this should be no problem if you
  communicate in text mode,
  but be aware of this when for example running a Linux engine in a Windows GUI.

Regards,
Franz.



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.