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,@anon55364143 and @EliteDaMyth.
If you have any issues, feel free to ping them.
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,@anon55364143 and @EliteDaMyth.
If you have any issues, feel free to ping them.
Continuing the discussion from [Community Puzzle] Is the King In Check? (Part 2):
Hello @DrQuarius ,
There is a minor errata on the first statement’s example:
_ _ _ _ Q _ _ _
_ _ _ _ _ _ _ _
_ _ _ N _ _ _ _
_ k _ _ _ _ _ _
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
In the above diagram, the Queen is not able to attack the King, but the Knight is, so the repsonse is “Check”.
However, Queen or Knight can attack the King
BR
Thanks for puzzle! I can’t seem to get past Validator 6. I have tried every possible combination of chess pieces/positions, and my code is handling them correctly. Any advice would be appreciated! Thanks!
Validator 6 is the same as Test 6 except for one of the pieces…
Found it! Thank you!