pg_key.c link

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

D Sceviour
Posts: 570
Joined: Mon Jul 20, 2015 5:06 pm

pg_key.c link

Post by D Sceviour »

I recently experienced a HD crash and am trying to recover some lost links. I need a reference to any polyglot utility that will display and verify the polyglot key of a FEN position. The following links or executables can no longer be found:

http://hgm.nubati.net/pg_key.c
http://www.open-aurec.com/wbforum/viewt ... 41#p187620
http://alpha.uhasselt.be/Research/Algebra/Toga/
AlvaroBegue
Posts: 931
Joined: Tue Mar 09, 2010 3:46 pm
Location: New York
Full name: Álvaro Begué (RuyDos)

Re: pg_key.c link

Post by AlvaroBegue »

Last edited by AlvaroBegue on Thu Sep 13, 2018 9:08 pm, edited 1 time in total.
User avatar
Guenther
Posts: 4605
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: pg_key.c link

Post by Guenther »

D Sceviour wrote: Thu Sep 13, 2018 8:29 pm I recently experienced a HD crash and am trying to recover some lost links. I need a reference to any polyglot utility that will display and verify the polyglot key of a FEN position. The following links or executables can no longer be found:

http://hgm.nubati.net/pg_key.c
http://www.open-aurec.com/wbforum/viewt ... 41#p187620
http://alpha.uhasselt.be/Research/Algebra/Toga/
Found it here now:
http://hardy.uhasselt.be/Toga/pg_key.c
https://rwbc-chess.de

trollwatch:
Chessqueen + chessica + AlexChess + Eduard + Sylwy
D Sceviour
Posts: 570
Joined: Mon Jul 20, 2015 5:06 pm

Re: pg_key.c link

Post by D Sceviour »

Thanks. I compiled it with gcc and got the following pkey for the opening position:
pg_key rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1

c5d79d196e37d67c

but the correct key is known as:

0x463b96181691fc9c

Will try to debug this when the opportunity arises, but wondering if anyone else experiences the same compile error?
AlvaroBegue
Posts: 931
Joined: Tue Mar 09, 2010 3:46 pm
Location: New York
Full name: Álvaro Begué (RuyDos)

Re: pg_key.c link

Post by AlvaroBegue »

Try using quotes to make the whole FEN string into a single argument:

pg_key "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"
D Sceviour
Posts: 570
Joined: Mon Jul 20, 2015 5:06 pm

Re: pg_key.c link

Post by D Sceviour »

Works beautiful with the quotation marks!! :D