Problem 45238. Checkmate
- The positions of different chess pieces are given in a cell p .
- The position of the king is given as x
Determine if the opponent king is in check for individual scenerios.
N.b.any invalid position should produce 0. u may imagine p as the white pieces and x as the black king for clarity.
Solution CommentsShow comments
Problem Recent Solvers7