[Community Puzzle] Chess board analyzer

I will now proceed to answer myself!

My issue was that I was still verifying if the taken piece, standing where the king is, was putting the king in check, probably resulting in some edge case. Fixed now :slight_smile:

Five stars!

2 Likes

can anybody explain me how to do it

What have you tried so far, or you have some specific problem?

Encountered the same trouble with #14…
IMHO the description ā€œAn attacked King could be saved only by moving himself to a safe squareā€ is ambiguous…

Ok I’ve updated the description with: ā€œA safe square is defined as either an empty square not attacked by any opponent’s piece, or a square occupied by an opponent’s piece that is not protected by any other opponent’s pieceā€

1 Like