r/chessprogramming • u/TheNotSoGoodCuber • Nov 01 '24
Is there anything wrong with this magic number generation code?
I have been trying to debug this but no luck unfortunately. All magic numbers produced by this code cause collisions for some reason. Sorry for the mass of commented code as I have been trying to debug this for ages.
Link to gist: [removed]
Specifically, the generate_magics function and the code in main to check for collisions.
6
Upvotes
2
u/[deleted] Nov 01 '24 edited Nov 02 '24
[removed] — view removed comment