this is probably my favorite bit of code I've ever seen. if you've ever wanted to learn about how classical chess engines work (like, pre neural network era), this is a really good entry point. I was porting this to lua, and wowowow there are some really elegant and cool solutions in here
granted, I have a thing for game theory so if that ain't your jam ymmv