Polyglot Zobrist Key Generator

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Polyglot Zobrist Key Generator

Post by shinkarom »

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: 385
Joined: Sat Feb 04, 2017 11:57 pm
Location: USA

Re: Polyglot Zobrist Key Generator

Post by MOBMAT »

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.
i7-6700K @ 4.00Ghz 32Gb, Win 10 Home, EGTBs on PCI SSD
Benchmark: Stockfish15.1 NNUE x64 bmi2 (nps): 1277K
shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Polyglot Zobrist Key Generator

Post by shinkarom »

Fixed.
MOBMAT
Posts: 385
Joined: Sat Feb 04, 2017 11:57 pm
Location: USA

Re: Polyglot Zobrist Key Generator

Post by MOBMAT »

Thanks for the quick fix. It should be useful.
I always used the half dozen or so examples that came with the Polyglot documentation.
i7-6700K @ 4.00Ghz 32Gb, Win 10 Home, EGTBs on PCI SSD
Benchmark: Stockfish15.1 NNUE x64 bmi2 (nps): 1277K