• Pawn-brotherhood problem

 

I would like to give some feedback about ...

From: http://www.checkio.org/mission/pawn-brotherhood/solve/

HTTP_USER_AGENT:

Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36

Test case [ "a1", "b2", "c3", "d4", "e5", "f6", "g7", "h8" ] implies that it is OK to have a pawn on row 1, so the correct answer is 7. On the other hand test case [ "a1", "a2", "a3", "a4", "h1", "h2", "h3", "h4" ] is supposed to have correct answer 0, while one would expect it to be 6, because all pawns are safe except "a1" and "h7". It is not clear why 0 is the correct answer.

5