I shall inform you that one of test cases not passes preconditions:
Precondition: 0 < len(land_map) < 10
all(len(land_map) == len(row) for row in land_map)
Latter condition implies that all cases have to be square matrices. But one of the cases breaks this condition (see attached file). It's not very difficult to add another check though, but preconditions must be honoured.
Thank you in advance, A.E.
Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0
Created at: 2014/07/12 11:53; Updated at: 2014/07/12 23:40