Computer Chess Club Archives


Search

Terms

Messages

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

Author: Daniel Mehrmannn

Date: 07:09:07 01/27/05


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 ?

example:

4345959*1*----------------------------Starte Motor 1
Homer----------------------------
4345959*1*Configured Engine 1 Type:   UCI
4346079*1*Engine 1 dir: C:\cygwin\home\Z005\homer
4346119*1*Engine 1 commandline: C:\cygwin\home\Z005\homer\homer.exe
4346499>1:uci
4346880<1:Chessprogram Homer
4346880<1:Copyright Daniel Mehrmann 2003, 2004
4346880<1:daniel.mehrmann@gmx.de
4346900<1:Version: 0.03
4346900<1:Build: 267
4346920<1:This program is free for personal use
4346920<1:Reading homer.ini
4346920<1:Hashtable    = 32
4346940<1:Pawn value   = 100
4346940<1:Knight value = 300
4346960<1:Bishop value = 300
4346960<1:Rook value   = 450
4346960<1:Queen value  = 900
4346980<1:Max QS depth = 10
4346980<1:Ponder       = on
4347000<1:Init hash memory. This could take a while...
4347000<1:Allocate 18750 KB for main hashtable
4347000<1:Allocate 9375 KB for depth hashtable
4347020<1:Allocate 3125 KB for eval hashtable
4347020<1:Allocate 31250 KB for hashtables
4347040<1:Opening book missing.
4347040<1:id name Homer 0.03 267
4347040<1:id author Daniel Mehrmann
4347040<1:option name Ponder type check default false
4347060<1:option name Hash type spin min 8 max 512 default 8
4347060<1:option name Pawn type spin default 100 min 50 max 150
4347060<1:option name Knight type spin default 300 min 250 max 350
4347060<1:option name Bishop type spin default 300 min 250 max 350
4347060<1:option name Rook type spin default 500 min 450 max 550
4347060<1:option name Queen type spin default 900 min 850 max 950
4347080<1:uciok
4347281>1:setoption name Queen value 900
4347281>1:setoption name Rook value 550
4347281>1:setoption name Bishop value 300
4347281>1:setoption name Knight value 300
4347281>1:setoption name Pawn value 100
4347281>1:setoption name Ponder value false
4347281>1:setoption name Hash value 32
4347281>1:isready
4347301<1:info string Queen value = 900
4347301<1:info string Rook value = 550
4347301<1:info string Bishop value = 300
4347301<1:info string Knight value = 300
4347301<1:info string Pawn value = 100
4347361<1:info string Ponder = 0
4348012<1:readyok
4348322>1:isready
4348342<1:readyok
4348422>1:ucinewgame
4348422>1:isready
4348913<1:readyok
4348943>1:position startpos
4348953>1:go infinite
4349414<1:info string No moves found - Assume new game !,  rc = 2
4349594<1:info depth 1 seldepth 0
4349604<1:info score cp 15 depth 1 seldepth 1 nodes 71 nps 403 time 17  pv d2d4
4349614<1:info depth 2 seldepth 0
4349624<1:info score cp 0 depth 2 seldepth 4 nodes 234 nps 1175 time 19  pv d2d4
d7d5
[.... delete a lot search infos]
4350996<1:info depth 9 seldepth 0
4351126>1:stop
4351136<1:whisper depth=8/19 score=+0.05 nps=85K pv -> e2e4 b8c6 e4d5 d8d5
4357185>1:test               <----- handline commamd
4357195<1:treffer            <----- engine response /debug place we engine is
4357205<1:bestmove e2e4
4357215<1:joooo              <----- debug info loop finished
4357225<1:Command not supported: test


daniel



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.