[Community Puzzle] Is the King In Check? (Part 2)

https://www.codingame.com/training/medium/is-the-king-in-check-part-2

Send your feedback or ask for help here!

Created by @DrQuarius,validated by @GeekNbOne,@SGE-GamingWarrior and @EliteDaMyth.
If you have any issues, feel free to ping them.