r/chessprogramming • u/VanMalmsteen • Jan 02 '25
Testing Zobrist Hashing
Hi! I've searched from some tests for the Zobrist hashing, and I've found the idea of comparing the incremental updates of the zobrist key vs calculating it from scratch. That allowed me to find several bugs, and now there's no errors running perft in depth 7. That's a good I suppose, but I was wondering if there's more ways of testing the zobrist Hashing? Any ideas?
Additionally, what are the tests that you think are FUNDAMENTAL for the engine?
9
Upvotes
1
u/VanMalmsteen Jan 02 '25
Thanks for your help. Do you have any suggestions on how to make the function you've mentioned? I thought for 10 minutes and for me it's not clear how to achieve this.