Page 1 of 1

Bonanza version adapted for interactive analysis (release)

Posted: Sat Sep 14, 2013 8:41 pm
by hgm
I tinkered a bit with the strong Shogi engine Bonanza. The version available for download differs from the original (Bonanza Feliz 0.0) in the following ways:

*) It supports WB protocol
*) It has a new analyze command (in both native Bonanza and WB mode)
*) It supports an undo command (again both modes)
*) It supports multi-PV (which the original version did not do by default)
*) It supports excluding moves from analysis (in WB mode)

A Windows binary is available for download (.exe only; for the support files you would have to download an original install).
Source code (with Linux gcc Makefile) is in my source repository.

The reason I release this patched version is that there exist virtually no Shogi engines that allow exclusion of moves from analysis (e.g. by implementing the USI 'searchmoves' command).

Re: Bonanza version adapted for interactive analysis (releas

Posted: Sat Sep 14, 2013 9:17 pm
by kranium
http://www.youtube.com/watch?v=ov-UBvZLPGY

sorry HG,
i couldn't resist...
(one of my all-time favorites)
:D

Re: Bonanza version adapted for interactive analysis (releas

Posted: Sun Sep 15, 2013 3:24 am
by Daniel Shawul
I think the zip file is broken. I get an exe of 0 kb after extraction.

Re: Bonanza version adapted for interactive analysis (releas

Posted: Sun Sep 15, 2013 8:53 am
by hgm
Indeed, you are right. It must have been damaged on uploading, and was 2 bytes shorter than my local zip file, which I checked to unpack OK. I uploaded a new version, and checked that this now is accepted by the archive manager, when I download it back.

Re: Bonanza version adapted for interactive analysis (releas

Posted: Sun Sep 15, 2013 1:16 pm
by Daniel Shawul
There seems to be a missing file. Bonanza exited with the following message

Code: Select all

recognized 'shogi' (-1) as variant shogi
recognized 'shogi' (-1) as variant shogi
shuffleOpenings = 0
Version: WinBoard 4.7.2 + bonanza
Reset(1, 0) from gameMode 0
recognized 'shogi' (-1) as variant shogi
GameEnds(0, (null), 2)
shuffleOpenings = 0
StartChildProcess (dir="../bonanza") bonanza
nice engine proc to 10
564 >first : xboard
protover 2
571 <first &#58; feature done=0
571 >first &#58; accepted done
572 <first &#58; 
572 <first &#58; ERROR&#58; Can't open a file, fv.bin
572 <first &#58; 
Terminating process 4976, result=0
GameEnds&#40;28, xboard exit, 2&#41;

Re: Bonanza version adapted for interactive analysis (releas

Posted: Sun Sep 15, 2013 1:37 pm
by tmokonen
You can get fv.bin and the other .bin support files from the original Bonanza Feliz 0.0 package, downloadable from here:

http://www.vector.co.jp/download/file/w ... 13964.html

Re: Bonanza version adapted for interactive analysis (releas

Posted: Sun Sep 15, 2013 2:58 pm
by Daniel Shawul
Thanks Tony.

Re: Bonanza version adapted for interactive analysis (releas

Posted: Sun Sep 15, 2013 4:07 pm
by hgm
hgm wrote:A Windows binary is available for download (.exe only; for the support files you would have to download an original install).
Some of the other files are huge, which is why I did not include them. fv.bin is 181MB, for instance. No reason to force people who already had Bonanza installed to download that again.

Note that Bonanza also seems to crash when there is no sub-folder 'log' in the engine folder. Surprisingly the regular Bonanza download (with the Windows binary in a folder winbin) does not have such a folder. Could be that it is compiled with a flag that suppresses logging. Perhaps I should switch off that flag too.

About an hour ago I replaced the zipped binary by a patched version of Bonanza 6.0 in stead of Bonanza Feliz. This is a newer version, and it has a visible advantage that it doesn't cut off PVs by hash hits so often. (I think Bonanza Feliz had a bug there when deciding if a cutoff should take place in a PV node.)

[Edit]
I just uploaded a version I compiled with an additional -DNO_LOGGING flag. Note that I can only make 32-bit compiles, and that Bonanza is bitboard.