Polyglot Zobrist Key Generator

Discussion of chess software programming and technical issues.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
shinkarom
Posts: 22
Joined: Tue Nov 19, 2019 12:26 pm
Full name: Roman Shynkarenko

Polyglot Zobrist Key Generator

Post by shinkarom » Sun Feb 09, 2020 11:54 am

https://shinkarom.github.io/zobrist/
FEN position goes in, hash goes out.
Well, you have to debug your hashing somehow. Having yet another vector of verification can strenghten your axis of confidence in your code.

MOBMAT
Posts: 109
Joined: Sat Feb 04, 2017 10:57 pm
Location: USA

Re: Polyglot Zobrist Key Generator

Post by MOBMAT » Sun Feb 09, 2020 9:15 pm

seems to have a bug...

it won't parse a "normal" fen, such as...

r1b2rk1/pp1n2pp/2p1p3/3p1pNq/2PP1Pn1/3BP1P1/PP2N1Kb/R1BQ1R2 b - - 0 1

until you scrape off the end of the string like this...

r1b2rk1/pp1n2pp/2p1p3/3p1pNq/2PP1Pn1/3BP1P1/PP2N1Kb/R1BQ1R2 b -

that is NOT a normal legal FEN. the code can ignore the parts it doesn't need, but it needs to accept legal FEN strings.
Vince S
Author of MOBMAT

"Reductions, extensions, and pruning, oh my!"

shinkarom
Posts: 22
Joined: Tue Nov 19, 2019 12:26 pm
Full name: Roman Shynkarenko

Re: Polyglot Zobrist Key Generator

Post by shinkarom » Mon Feb 10, 2020 7:05 pm

Fixed.

MOBMAT
Posts: 109
Joined: Sat Feb 04, 2017 10:57 pm
Location: USA

Re: Polyglot Zobrist Key Generator

Post by MOBMAT » Tue Feb 11, 2020 2:58 am

Thanks for the quick fix. It should be useful.
I always used the half dozen or so examples that came with the Polyglot documentation.
Vince S
Author of MOBMAT

"Reductions, extensions, and pruning, oh my!"

Post Reply