Main
Date: 01 Jul 2008 05:01:55
From:
Subject: Problems with Fritz UCI
I'm writing a UCI chess engine, mostly as an interesting way to learn
data structures and algorithms. I wanted to use Fritz11 as the front
end, but I couldn't get it to work --- it would load my engine, but it
wouldn't move the pieces when I sent it my moves. After hours of
poring over the protocols trying to find my mistake, I downloaded
Arena and installed my engine into it. It worked perfectly.

Does anyone know if Fritz has some quirks that make it expect
something not in the protocol? Am I using an outdated protocol (I got
it from http://www.shredderchess.com/download.html )?

I did get Fritz to work with Glaurung, another UCI engine, but in
looking at its source and also capturing its exchanges I don't see it
doing anything essentially different than what I'm doing, except that
it has about a thousand options that I don't have. The protocol says
that you just need to send a "bestmove" line in response to a "stop"
line, and I don't see how even I can screw that up, and as I said
Arena is happy with my engine.

Any tips greatly appreciated.




 
Date: 11 Jul 2008 00:52:31
From:
Subject: Re: Problems with Fritz UCI
Roman, thanks for the tip. I had my options after the uciok, and when
I moved them before it as you suggested, Fritz started responding.
Thanks again.


 
Date: 07 Jul 2008 14:32:28
From:
Subject: Re: Problems with Fritz UCI
Apologies for the late reply, I was out of town for the long July 4
weekend. Also apologies if this is a duplicate, but I don't see the
response I wrote an hour ago.

Thanks to everyone who responded. I haven't solved the Fritz problem
yet (I had already tried info commands), but since Arena works so well
for me, I will keep using that for UCI, and just use Fritz for
analysis. I also found that Arena contains an invaluable tool for UCI
authors, namely a debug window that shows all exchanges between the
GUI and the engine. My compliments to the author.


 
Date: 07 Jul 2008 13:16:56
From:
Subject: Re: Problems with Fritz UCI
Thanks to everyone who replied. I was out of town for the July 4
weekend (big holiday in the US) so I apologize for the delay.

I tried using an option as Roman suggested, but it didn't help. But
frankly I don't care about Fritz anymore; since Arena works so well I
will use it from now on for my UCI games, and Fritz for analysis.

For anyone else trying to write a UCI engine, one thing Arena has that
is absolutely invaluable is a debug window that shows all the commands
exchanged between the GUI and the engine. My compliments to the
author.



 
Date: 03 Jul 2008 18:57:32
From: Michael Diosi
Subject: Re: Problems with Fritz UCI
Hello,


Noah's arch was built by an amateur. The Titanic was built by professionals.
The same is true for Arena vs. ChessBase. You know the result, don't you ?
And no I will not do the job which should done by ChessBase support.



Regards,
Michael
http://www.playwitharena.com

P.S. A new version of Arena will be released soon, sorry still beta guys
but still free. Also the forum will reopen and we will might have a Wiki
too... So leave the Base and ... join the Arena.




  
Date: 04 Jul 2008 11:28:56
From: David Richerby
Subject: Re: Problems with Fritz UCI
Michael Diosi <[email protected] > wrote:
> Noah's arch was built by an amateur. The Titanic was built by
> professionals. The same is true for Arena vs. ChessBase. You know
> the result, don't you ?

Er, that Arena's just a legend and ChessBase is at the bottom of the
Atlantic?


Dave.

--
David Richerby Surprise Cheese (TM): it's like a lump
www.chiark.greenend.org.uk/~davidr/ of cheese but not like you'd expect!


  
Date: 04 Jul 2008 04:12:59
From:
Subject: Re: Problems with Fritz UCI
On Thu, 3 Jul 2008 18:57:32 +0200, "Michael Diosi"
<[email protected] > wrote:

>Hello,
>
>
>Noah's arch was built by an amateur. The Titanic was built by professionals.
>The same is true for Arena vs. ChessBase. You know the result, don't you ?
>And no I will not do the job which should done by ChessBase support.
>
>
>
>Regards,
>Michael
>http://www.playwitharena.com
>
>P.S. A new version of Arena will be released soon, sorry still beta guys
>but still free. Also the forum will reopen and we will might have a Wiki
>too... So leave the Base and ... join the Arena.
>

I prefer Arena in a comp vs comp match. Just a question for you. I
want to play a 'gauntlet' match using a specific opening. I would
like the 'main' engine to be black. is this possible? I can get it to
work as white (in which I have several openings that I want games for)
but seem stuck when trying to get it to work with my black openings.

Thanks
J.Lohner


   
Date: 04 Jul 2008 09:27:57
From: Michael Diosi
Subject: Re: Problems with Fritz UCI
Hello,


As it looks like I am afraid you will have to neglect the games plays with
white and only take into account those played with black (switch sides). I
will take a closer look. If it is not possible we will see what we can do to
make it possible.

Regards,
Michael

http://www.playwitharena.com
Leave the Base... join the Arena






 
Date: 02 Jul 2008 21:32:09
From: Roman Hartmann
Subject: Re: Problems with Fritz UCI
[email protected] wrote:
> I'm writing a UCI chess engine, mostly as an interesting way to learn
> data structures and algorithms. I wanted to use Fritz11 as the front
> end, but I couldn't get it to work --- it would load my engine, but it
> wouldn't move the pieces when I sent it my moves. After hours of
> poring over the protocols trying to find my mistake, I downloaded
> Arena and installed my engine into it. It worked perfectly.
>
> Does anyone know if Fritz has some quirks that make it expect
> something not in the protocol? Am I using an outdated protocol (I got
> it from http://www.shredderchess.com/download.html )?
>
> I did get Fritz to work with Glaurung, another UCI engine, but in
> looking at its source and also capturing its exchanges I don't see it
> doing anything essentially different than what I'm doing, except that
> it has about a thousand options that I don't have. The protocol says
> that you just need to send a "bestmove" line in response to a "stop"
> line, and I don't see how even I can screw that up, and as I said
> Arena is happy with my engine.
>
> Any tips greatly appreciated.

Hi,
you need to provide at least one option to Fritz. Don't ask me why ...

Just provide a dummy option to Fritz and it should work. I assume you
don't buffer i/o.

Something like that should work:

....
printf("\nid author John Doe");
printf("\noption name useInternalOpeningBook type check default false");
printf("\nuciok\n");

Roman


 
Date: 02 Jul 2008 19:13:02
From: Tony M
Subject: Re: Problems with Fritz UCI
On Tue, 1 Jul 2008 05:01:55 -0700 (PDT), [email protected] wrote:

>I'm writing a UCI chess engine, mostly as an interesting way to learn
>data structures and algorithms. I wanted to use Fritz11 as the front
>end, but I couldn't get it to work --- it would load my engine, but it
>wouldn't move the pieces when I sent it my moves. After hours of
>poring over the protocols trying to find my mistake, I downloaded
>Arena and installed my engine into it. It worked perfectly.
>
>Does anyone know if Fritz has some quirks that make it expect
>something not in the protocol? Am I using an outdated protocol (I got
>it from http://www.shredderchess.com/download.html )?
>
>I did get Fritz to work with Glaurung, another UCI engine, but in
>looking at its source and also capturing its exchanges I don't see it
>doing anything essentially different than what I'm doing, except that
>it has about a thousand options that I don't have. The protocol says
>that you just need to send a "bestmove" line in response to a "stop"
>line, and I don't see how even I can screw that up, and as I said
>Arena is happy with my engine.
>
>Any tips greatly appreciated.

Most UCI engines work fine in Fritz, so I don't think it's something
hidden within the Chessbase GUI. You are using the latest UCI specs.
One possibility may be that the two GUIs are sending commands in a
slightly different order, and something isn't getting initialized when
your engine runs through Fritz as opposed to running through Arena.

Tony