[Community Puzzle] Adversarial Mate with Rook

https://www.codingame.com/training/hard/adversarial-mate-with-rook

Send your feedback or ask for help here!

Created by @aCat,validated by @CamTheHelpDesk,@Alex-1 and @Doctor_Pistachio.
If you have any issues, feel free to ping them.

Nalimov tablebases was helpful for me but I had to copy my code to CodeBlocks and input diffrent combinations to check if my program works.

http://chessbrains.pl/tablice-nalimova/