Check is an important part of the chess endgame! We need to implement a way to detect when a king is in Check, or when a move would put the King into Check. We must also prevent a player from making a move that would put their own King into Check since this a not a legal move. Only an opposing player can make a move that puts a King into check.
Check is an important part of the chess endgame! We need to implement a way to detect when a king is in Check, or when a move would put the King into Check. We must also prevent a player from making a move that would put their own King into Check since this a not a legal move. Only an opposing player can make a move that puts a King into check.