News for hackers. Stuff that matters.
Re:Compressing Chess Moves for Fun and Profit by bubblyworld on Saturday March 16, 2024 @04:11AM (#39724165)
Yeah, that's true, I see what you're saying. I guess knowing the king is already in check allows for optimisations, since you have to either move the king, capture the attacker or block the line of attack, and nothing else is legal. And if you're double-checked you have to move the king, no matter what. As opposed to stalemate where you really do have to check the moves of every piece.
Re:Compressing Chess Moves for Fun and Profit by stevage on Saturday March 16, 2024 @10:36PM (#39731446)
I guess that could be true if you have ready access to things like "the attacker" and "pieces that are capable of moving to block the line of attack".