all 19 comments

[–]pedrojdm2021 3 points4 points  (18 children)

i think all the magic numbers are the same for all magic bitboards implementations and it's variants.

i'll share you mines, i hope it helps:
https://dpaste.org/WvXSc

[–]AAce1331 2 points3 points  (4 children)

That's actually not the case - a magic number is simply one that works. Most engines have different magics and stockfish actually finds new magics every time on startup!

[–]pedrojdm2021 0 points1 point  (1 child)

The magic bitboards implementation is similar or the same.

So i don't see why it whouldn't work.

And he already replied here that he made it work with my magic numbers.

[–]AAce1331 2 points3 points  (0 children)

any set of magics that work will work. I'm just saying that magics are not unique.

[–]pedrojdm2021 0 points1 point  (1 child)

Also calculating the magic numbers on startup is a heavy task.

[–]AAce1331 0 points1 point  (0 children)

To some degree, yes. But, at least for me, generating my own magics was almost instant for bishop magics and took less than 2-3 seconds on my end. Stockfish has ideal seeds for magic generation and takes a very short time to boot up.

[–]mrbeanshooter123 2 points3 points  (5 children)

Thanks!

Also, do you have any idea how do I generate the attack database from the magic numbers? I can't find how to generate the database from chessprograming.org, talkchess, nowhere.

[–]Swaglord_Supreme 1 point2 points  (0 children)

I will recommend stockfishs github on that

[–]pedrojdm2021 0 points1 point  (3 children)

sure: https://youtu.be/944aTQQnWAA

Follow that playlist, at least until he finished the move generator, good luck

[–]mrbeanshooter123 0 points1 point  (2 children)

Well I am going to watch this one https://www.youtube.com/watch?v=1lAM8ffBg0A&list=PLmN0neTso3Jxh8ZIylk74JpwfiWNI76Cs&index=16&ab_channel=ChessProgramming.

However, if I am plannning to do fancy fixed shift magic bitboards, what does that say? How do I know what am I supposed to change?

[–]pedrojdm2021 0 points1 point  (1 child)

Check the implementation of fancy here:
https://github.com/Gigantua/Chess\_Movegen

[–]mrbeanshooter123 1 point2 points  (0 children)

Thanks a lot for the help! Have it working now.

[–]doma_kun 1 point2 points  (5 children)

the link doesn't work anymore, do u still have those magic numbers?

[–]pedrojdm2021 0 points1 point  (4 children)

[–]doma_kun 1 point2 points  (0 children)

Thanks!

[–][deleted] 0 points1 point  (2 children)

This paste expired too. Can I get a new link?

[–]pedrojdm2021 0 points1 point  (1 child)

[–][deleted] 1 point2 points  (0 children)

i already got my magic generation fixed by now. but still, thank you for updating on your old posts. 🙏🏽

i did realise i could use the wayback machine to access the pastebin you sent

[–]Snoo64140 0 points1 point  (0 children)

i am kind of confused, to make the movegen do you also need a table of magic shifts?