Search found 217 matches

by Roland Chastain
Tue Dec 24, 2019 12:40 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Pascal code to read a Polyglot book
Replies: 13
Views: 637

Re: Pascal code to read a Polyglot book

Has someone already tried to make books with favourite openings by a given famous chess player?
by Roland Chastain
Tue Dec 24, 2019 11:31 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Pascal code to read a Polyglot book
Replies: 13
Views: 637

Re: Pascal code to read a Polyglot book

If I had time, I would like to try the book format used in La Dame blanche. But it is another story. :)
by Roland Chastain
Tue Dec 24, 2019 11:13 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Pascal code to read a Polyglot book
Replies: 13
Views: 637

Re: Pascal code to read a Polyglot book

Now it's a mystery for me how the C code can work. :| Well in C, the 0 prefix denotes octal, so 7*8+7 = 63 :) (does it mean that Eschecs will get an opening book soon? ;) OK, didn't know that. Thank you for the explanation. Yes, Eschecs should have a book very soon. And I also hope to fix the bug t...
by Roland Chastain
Tue Dec 24, 2019 9:08 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Pascal code to read a Polyglot book
Replies: 13
Views: 637

Re: Pascal code to read a Polyglot book

Yes, the problem was the constant 077. With the following correction the code works correctly. 8-) f := (move shr 6) and 63; fr := (f shr 3) and 7; ff := f and 7; t := move and 63; tr := (t shr 3) and 7; tf := t and 7; p := (move shr 12) and 7; Now it's a mystery for me how the C code can work. :|
by Roland Chastain
Tue Dec 24, 2019 7:51 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Pascal code to read a Polyglot book
Replies: 13
Views: 637

Re: Pascal code to read a Polyglot book

Can you compile and run the C code example? If yes, it is easy to run both C code and your Pascal program in debug mode, step by step then compare all variants. Yes, I can compile and run the C code, so I can do what you say. I have just a quick glance and suspicion about your constant 077. My code...
by Roland Chastain
Tue Dec 24, 2019 3:29 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Pascal code to read a Polyglot book
Replies: 13
Views: 637

Re: Pascal code to read a Polyglot book

Here is a first version of pg_show.pas . It doesn't work correctly. Here are the moves suggested for the start position: move=b2b2 weight=41,46% move=e2e2 weight=40,62% move=e1f1 weight=10,00% move=a2a2 weight= 7,33% move=e2e1 weight= 0,29% move=b2b1 weight= 0,18% move=f2f2 weight= 0,07% move=b1a1 w...
by Roland Chastain
Mon Dec 23, 2019 7:36 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Pascal code to read a Polyglot book
Replies: 13
Views: 637

Pascal code to read a Polyglot book

Hello! I started to convert to Pascal the source code provided on this page . Here is pg_key.pas . I included six test positions. The program returns the expected results except for one position. :| (* * This little proof of concept utility for educational purposes * computes the Polyglot key of a f...
by Roland Chastain
Sun Dec 22, 2019 3:55 pm
Forum: Computer Chess Club: General Topics
Topic: Schooner Version 2.2 Release
Replies: 36
Views: 2877

Re: Schooner Version 2.2 Release

D Sceviour wrote:
Sun Dec 22, 2019 3:36 pm
Are you in need of a polyglot conversion utility, or is it just a matter of finding the time to write the code?
For now, my programs doesn't use any book. I don't have some code to read a book. So, yes, I have to write some code.
by Roland Chastain
Sun Dec 22, 2019 9:53 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Trying to use ProDeo book in my program
Replies: 10
Views: 634

Re: Trying to use ProDeo book in my program

phhnguyen wrote:
Sun Dec 22, 2019 7:58 am
Happy coding
Thank you for the links and for the tips. OK, in 2020 I will try to learn how to read a polyglot book. :wink:
by Roland Chastain
Sun Dec 22, 2019 9:33 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Looking for a crossplatform equivalent of Wb2Uci
Replies: 5
Views: 386

Re: Looking for a crossplatform equivalent of Wb2Uci

hgm wrote:
Sun Dec 22, 2019 9:10 am
Note that UCI2WB is the opposite of what you asked for. It is for running UCI engines in a WB GUI.
Thank you for your answer. Yes, I know.