Chess programming (no AI) - moves validation
问题 I'm trying to program my own chess engine (no AI). I know there is Chess Game Starter Kit and I watched it for start inspiration. But what I didn't catch is where are validated moves (here is moves validation) for my non-king pieces preventing to get myself to check? Imagine situation: A5 - opponents rook A4 - my bishop A3 - my king I can't move my bishop now since I would get to check. Or how would you suggest to check this situation? Thank you 回答1: For a given board position, most chess