r/ComputerChess • • Feb 09 '24

Can I use my Attack pattern dictionary instead of a random number dictionary for Zobrist Hashing?

3 Upvotes

Hey. I am making a Chess engine in C++ and I was wondering if I really need to init a random number array for zorbist hashing when I have an attack dictionary that matches a piece on a square to an attack pattern u64?

will it not work?

Thanks!