New answers tagged


It sounds like you have all the tools to do the job, you just need to put it all together. And yes, you can use the magic numbers you found. When your engine initializes (or any time before you begin the search, really) you'll need to pre-compute the move board for every possible permutation of blockers you might encounter during the search. Initialization ...


This position is equal or maybe White is slightly better. If there were open files it'd be a different story, though!


White hasn't lost his castling rights. It's just not a legal move right now. There is a distinction. White would still be able to castle king-side, if the bishop were to move.


Yes, the game is won by white if it's white to move, otherwise black finds safety in a stalemate, but only if the b-file pawn is pushed first.

Top 50 recent answers are included