Task: find all the hidden mines in the map without hitting one of them (Or tell that there is no unique solution).
Given: the map, the number of hidden mines and sometimes a few secure fields without a mine next to them.
It is a Codewars kata of rank 1 (most difficult), see https://www.codewars.com/kata/57ff9d3b8f7dda23130015fa
This is my solution of the task. solution of kata