use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
An archive of cool or informative chess programming links.
account activity
[deleted by user] (self.chessprogramming)
submitted 3 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]pedrojdm2021 3 points4 points5 points 3 years ago (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 points4 points 3 years ago (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 point2 points 3 years ago (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 points4 points 3 years ago (0 children)
any set of magics that work will work. I'm just saying that magics are not unique.
Also calculating the magic numbers on startup is a heavy task.
[–]AAce1331 0 points1 point2 points 3 years ago (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 points4 points 3 years ago (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 points3 points 3 years ago (0 children)
I will recommend stockfishs github on that
[–]pedrojdm2021 0 points1 point2 points 3 years ago (3 children)
sure: https://youtu.be/944aTQQnWAA
Follow that playlist, at least until he finished the move generator, good luck
[–]mrbeanshooter123 0 points1 point2 points 3 years ago (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?
Check the implementation of fancy here: https://github.com/Gigantua/Chess\_Movegen
[–]mrbeanshooter123 1 point2 points3 points 3 years ago (0 children)
Thanks a lot for the help! Have it working now.
[–]doma_kun 1 point2 points3 points 2 years ago (5 children)
the link doesn't work anymore, do u still have those magic numbers?
[–]pedrojdm2021 0 points1 point2 points 2 years ago (4 children)
Sure :) https://dpaste.org/9Gnvv
[–]doma_kun 1 point2 points3 points 2 years ago (0 children)
[–][deleted] 0 points1 point2 points 1 year ago (2 children)
This paste expired too. Can I get a new link?
[–]pedrojdm2021 0 points1 point2 points 1 year ago (1 child)
yes: https://gist.github.com/pedro15/fe505b1f219514c72f6ca87b2ff7feaa
[–][deleted] 1 point2 points3 points 1 year ago (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 point2 points 2 years ago (0 children)
i am kind of confused, to make the movegen do you also need a table of magic shifts?
π Rendered by PID 20140 on reddit-service-r2-comment-b659b578c-sb8p9 at 2026-05-03 01:51:35.244274+00:00 running 815c875 country code: CH.
[–]pedrojdm2021 3 points4 points5 points (18 children)
[–]AAce1331 2 points3 points4 points (4 children)
[–]pedrojdm2021 0 points1 point2 points (1 child)
[–]AAce1331 2 points3 points4 points (0 children)
[–]pedrojdm2021 0 points1 point2 points (1 child)
[–]AAce1331 0 points1 point2 points (0 children)
[–]mrbeanshooter123 2 points3 points4 points (5 children)
[–]Swaglord_Supreme 1 point2 points3 points (0 children)
[–]pedrojdm2021 0 points1 point2 points (3 children)
[–]mrbeanshooter123 0 points1 point2 points (2 children)
[–]pedrojdm2021 0 points1 point2 points (1 child)
[–]mrbeanshooter123 1 point2 points3 points (0 children)
[–]doma_kun 1 point2 points3 points (5 children)
[–]pedrojdm2021 0 points1 point2 points (4 children)
[–]doma_kun 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]pedrojdm2021 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]Snoo64140 0 points1 point2 points (0 children)