Bonanza version adapted for interactive analysis (release)

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

Moderators: hgm, Rebel, chrisw

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

Bonanza version adapted for interactive analysis (release)

Post 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).
kranium
Posts: 2129
Joined: Thu May 29, 2008 10:43 am

Re: Bonanza version adapted for interactive analysis (releas

Post by kranium »

http://www.youtube.com/watch?v=ov-UBvZLPGY

sorry HG,
i couldn't resist...
(one of my all-time favorites)
:D
Daniel Shawul
Posts: 4185
Joined: Tue Mar 14, 2006 11:34 am
Location: Ethiopia

Re: Bonanza version adapted for interactive analysis (releas

Post by Daniel Shawul »

I think the zip file is broken. I get an exe of 0 kb after extraction.
User avatar
hgm
Posts: 27808
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Bonanza version adapted for interactive analysis (releas

Post 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.
Daniel Shawul
Posts: 4185
Joined: Tue Mar 14, 2006 11:34 am
Location: Ethiopia

Re: Bonanza version adapted for interactive analysis (releas

Post 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;
tmokonen
Posts: 1296
Joined: Sun Mar 12, 2006 6:46 pm
Location: Kelowna
Full name: Tony Mokonen

Re: Bonanza version adapted for interactive analysis (releas

Post 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
Daniel Shawul
Posts: 4185
Joined: Tue Mar 14, 2006 11:34 am
Location: Ethiopia

Re: Bonanza version adapted for interactive analysis (releas

Post by Daniel Shawul »

Thanks Tony.
User avatar
hgm
Posts: 27808
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Bonanza version adapted for interactive analysis (releas

Post 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.