Stockfish Crazyhouse Engine

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

styx
Posts: 338
Joined: Tue Mar 13, 2012 9:59 pm
Location: Germany

Re: Stockfish Crazyhouse Engine

Post by styx »

By the way: is there a way to save the settings in the UCI2WB engine settings dialog? Usually we have "polyglot save" but not when using UCI2WB
User avatar
hgm
Posts: 28386
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Stockfish Crazyhouse Engine

Post by hgm »

Unfortunately this is not implemented (yet?). On Polyglot it was a natural and simple extension, as Polyglot worked with ini files anyway. But UCI2WB is just a protocol translator, which does not remember anything.

It could be added, of course, but the point is that it is really bad design to let an adapter handle this. There is no reason why you should want to make settings of UCI engines persistent, and not for WB egines. So it is really the GUI that should remember option settings on a per-engine basis.

I could make XBoard maintain a set of per-engine ini files, like Polyglot does. But perhaps a more logical way to handle it would be to store these settings in the engine list, as an extra -firstOptions "..." for each engine. An always-added 'Save' button in the Engine Settigs dialog could then add/replace such an option in the engine line. Only options with non-default settings would have to be stored this way.
Guenther
Posts: 4718
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Stockfish Crazyhouse Engine

Post by Guenther »

styx wrote:You don't even need to add "-variant crazyhouse" at the end
I did this for myself because I have a new directory for engines which shall
only play crazyhouse here and nothing else.
User avatar
hgm
Posts: 28386
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Stockfish Crazyhouse Engine

Post by hgm »

Can someone help me to an executable (Windows or Linux) of the latest source code? I want to try out if yesterday's commit for printing the start-position FEN now also makes variant 'horde' work with my latest UCI2WB. But I don't seem to be able to compile it, and the latest binary release from niklasf is 5 days old.
styx
Posts: 338
Joined: Tue Mar 13, 2012 9:59 pm
Location: Germany

Re: Stockfish Crazyhouse Engine

Post by styx »

Sadly I can only provide a Linux binary. Normally cross compiling Stockfish is a piece of cake, but if I try to do it with mingw with the multivariant code, I get several errors

here is the linux version:

https://www.dropbox.com/s/qiuzm6adndlm7 ... ar.gz?dl=0
JManion
Posts: 212
Joined: Wed Dec 23, 2009 8:53 am

Re: Stockfish Crazyhouse Engine

Post by JManion »

Guenther wrote:
JManion wrote:I have a dozen other engines in separate folders and they all work in winboard
Do you have the real crazyhouse SF program from here?
https://github.com/niklasf/Stockfish/releases

BTW with the new UCI2WB file from HGM and following his steps
the entry would look much simpler now, sth like this:
(replace your path)

Code: Select all

"StockfishZH_8-64" -fcp "stockfishZH_8-64.exe" -fd "C:\Engines\Crazyhouse\StockfishZH_8-64" -fUCCI -variant crazyhouse
I downloaded the zh stockfish from this threaed.

I also downloaded the latest file of UCI2WB

I changed my path mimic yours

"StockfishZH_8-64" -fcp "stockfishZH_8-64.exe" -fd "C:\Program Files (x86)\WinBoard-4.8.0\stockfish8zh_x64_modern" -fUCCI -variant crazyhouse

After that I try to run stockfish and i get the following

Error: first chess program (ucci2wb -noini C:programfiles etc exited unexpectedly
JManion
Posts: 212
Joined: Wed Dec 23, 2009 8:53 am

Re: Stockfish Crazyhouse Engine

Post by JManion »

Ok I just tried one more thing.

Ijust tried to add stockfish8zh.

I went to load first engine and selected the sf8zh

I clicked force current variant button and UCCI button.

This time it didnt crash/give me an error.

However when I click on analysis mode nothing happens.
styx
Posts: 338
Joined: Tue Mar 13, 2012 9:59 pm
Location: Germany

Re: Stockfish Crazyhouse Engine

Post by styx »

JManion wrote:Ok I just tried one more thing.

Ijust tried to add stockfish8zh.

I went to load first engine and selected the sf8zh

I clicked force current variant button and UCCI button.

This time it didnt crash/give me an error.

However when I click on analysis mode nothing happens.
Have you copied the new UCI2WB.exe in your winboard directory und started winboard once wit additional

Code: Select all

-uxiAdapter {UCI2WB -%variant %fcp %fd}
you could do it using a file shortcut and adding the code like this:

Code: Select all

C:\WinBoard-4.8.0\WinBoard\winboard.exe -uxiAdapter {UCI2WB -%variant %fcp %fd}
example (sorry, german windows dialog):

Image
User avatar
hgm
Posts: 28386
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Stockfish Crazyhouse Engine

Post by hgm »

JManion wrote:After that I try to run stockfish and i get the following

Error: first chess program (ucci2wb -noini C:programfiles etc exited unexpectedly
This shows you did not set the uxiAdapter to UCI2WB: the error message says it is still using UCCI2WB (which is an adapter only capable of handling Xiangqi engines).
styx
Posts: 338
Joined: Tue Mar 13, 2012 9:59 pm
Location: Germany

Re: Stockfish Crazyhouse Engine

Post by styx »

styx wrote:Sadly I can only provide a Linux binary. Normally cross compiling Stockfish is a piece of cake, but if I try to do it with mingw with the multivariant code, I get several errors

here is the linux version:

https://www.dropbox.com/s/qiuzm6adndlm7 ... ar.gz?dl=0
The Windows SF-Dev-Multi-Variant-Binary works now (and I don't even know why):

https://www.dropbox.com/s/o5bg09bexkas4 ... n.zip?dl=0