[Community Puzzle] King of Diamonds

https://www.codingame.com/training/expert/king-of-diamonds

Send your feedback or ask for help here!

Created by @VE_FORBRYDERNE,validated by @RaulButuc.
If you have any issues, feel free to ping them.