Page 2 of 2

Re: asmFishW_2017-10-03_popcnt.exe update

Posted: Thu Oct 05, 2017 3:54 pm
by lantonov
Gusev wrote: Thanks!! :idea: Please add native support for Polyglot opening books, as in Houdini 6.02.
I don't know how the new Houdini supports Polyglot books, but asmFish has native Polyglot book (.bin) support since its inception.

Re: asmFishW_2017-10-03_popcnt.exe update

Posted: Sat Oct 07, 2017 7:40 am
by Gusev
lantonov wrote:
Gusev wrote: Thanks!! :idea: Please add native support for Polyglot opening books, as in Houdini 6.02.
I don't know how the new Houdini supports Polyglot books, but asmFish has native Polyglot book (.bin) support since its inception.
When I open the asmFish configuration in Arena, I don't see a textbox where I could enter the path to a Polyglot (or any other) opening book. Where can I set it :?:

Re: asmFishW_2017-10-03_popcnt.exe update

Posted: Sat Oct 07, 2017 8:18 am
by lantonov
Gusev wrote: When I open the asmFish configuration in Arena, I don't see a textbox where I could enter the path to a Polyglot (or any other) opening book. Where can I set it :?:
I don't use Arena but Winboard as a GUI. In the engine setting of Winboard I get 2 places to set own book (one from the Polyglot adaptor and the other from asmFish itself).
It is important to say that USE_BOOK is an assembly-time option, so you have to assemble it with USE_BOOK = 1. By default, USE_BOOK is set to 0 (but it may change, if enough users demand this, and it doesn't hamper overall performance)

Re: asmFishW_2017-10-03_popcnt.exe update

Posted: Sat Oct 07, 2017 9:02 am
by lantonov
From the readme at https://github.com/lantonov/asmFish/tree/fasmg

USE_BOOK=1 assemble option
OwnBook Lookup position in book if possible. Ponder moves are also selected from the book when possible
BookFile Loads polyglot book into engine.
BestBookMove Use only the best moves from the book (highest weight)
BookDepth Tricky setting works as follows:
BookDepth <= 0:
suppose the lines the book from the current position are
T0: h2h3(30) c5d4(10) e3d4(14) g4h5(10) g2g4(11)
h2h3(30) g4h5(5)
d4c5(17) d6c5(17) b1c3(7)
the moves g2g4(11), g4h5(5) and b1c3(7) are leaves and don't lead
to a position in the book. Triming off these leaves three times,
T1: h2h3(30) c5d4(10) e3d4(14) g4h5(10)
d4c5(17) d6c5(17)
T2: h2h3(30) c5d4(10) e3d4(14)
d4c5(17)
T3: h2h3(30) c5d4(10)
If BookDepth = 0, probe as if it were in T0 (unchanged)
If BookDepth =-1, probe as if it were in T1 (leaves off)
If BookDepth =-2, probe as if it were in T2 (trim twice)
If BookDepth =-3, probe as if it were in T3 (trim trice)
So with BookDepth <= -3, the move d4c5 is not considered.
With BookDepth <= -5, the move h2h3 is also not considered.

BookDepth >= 1:
Book is not probed if gameply >= BookDepth

The discussion about all these complex book settings is in this feature request https://github.com/lantonov/asmFish/issues/48

Re: asmFishW_2017-10-03_popcnt.exe update

Posted: Mon Oct 09, 2017 2:04 am
by Gusev
lantonov wrote:
Gusev wrote: When I open the asmFish configuration in Arena, I don't see a textbox where I could enter the path to a Polyglot (or any other) opening book. Where can I set it :?:
I don't use Arena but Winboard as a GUI. In the engine setting of Winboard I get 2 places to set own book (one from the Polyglot adaptor and the other from asmFish itself).
It is important to say that USE_BOOK is an assembly-time option, so you have to assemble it with USE_BOOK = 1. By default, USE_BOOK is set to 0 (but it may change, if enough users demand this, and it doesn't hamper overall performance)
Hi Lyudmil,
The version of asmFish170825 (from the master branch) that I compiled with USE_BOOK = 1 does not do infinite analysis when it is within the book, unlike Houdini 6.02 that can recognize this situation and handle it.

Re: asmFishW_2017-10-03_popcnt.exe update

Posted: Mon Oct 09, 2017 6:10 am
by lantonov
Gusev wrote: Hi Lyudmil,
The version of asmFish170825 (from the master branch) that I compiled with USE_BOOK = 1 does not do infinite analysis when it is within the book, unlike Houdini 6.02 that can recognize this situation and handle it.
Yes, that's right. There was a discussion about it (https://github.com/lantonov/asmFish/issues/72), where the following became clear:
(1) in analysis mode with ownbook=true, engine will try a book move
(2) in analysis mode with ownbook=false, engine will think think and will not try a book move
My proposal was to switch off the book in analysis mode.

Re: asmFishW_2017-10-03_popcnt.exe update

Posted: Mon Oct 09, 2017 1:26 pm
by Gusev
lantonov wrote:
Gusev wrote: Hi Lyudmil,
The version of asmFish170825 (from the master branch) that I compiled with USE_BOOK = 1 does not do infinite analysis when it is within the book, unlike Houdini 6.02 that can recognize this situation and handle it.
Yes, that's right. There was a discussion about it (https://github.com/lantonov/asmFish/issues/72), where the following became clear:
(1) in analysis mode with ownbook=true, engine will try a book move
(2) in analysis mode with ownbook=false, engine will think think and will not try a book move
My proposal was to switch off the book in analysis mode.
Naturally, I support your proposal. Then USE_BOOK = 1 can become the new default.

Re: asmFishW_2017-10-03_popcnt.exe update

Posted: Wed Nov 08, 2017 8:48 pm
by lantonov
This patch takes care of the issue:
2017-11-06 forget about book upon go infinite
https://github.com/lantonov/asmFish/com ... 6677c4de5c

Re: asmFishW_2017-10-03_popcnt.exe update

Posted: Fri Nov 17, 2017 4:16 am
by Gusev
Thank you very much, Lyudmil!
lantonov wrote:This patch takes care of the issue:
2017-11-06 forget about book upon go infinite
https://github.com/lantonov/asmFish/com ... 6677c4de5c