While having a go at writing my own chess engine I came across a ridiculouslybeautiful bit twiddling trick���
[image error]
So, I���m on my second weekend of trying to write a chess engine from scratch,having been thoroughly nerd-sniped by Lichess and theirgenerous hosting of the Chess Programming Wiki.
I���ve come across the Most Ridiculously Cool bit twiddling trick that I���m fairlysure all the engines use.
Certainly the Not Quite A Tutorial As Such But Very Close To It that I amworking through h...
Published on August 16, 2026 16:00