Hi. I would like to give some feedback about ...
From: http://www.checkio.org/mission/count-neighbours/solve/
HTTP_USER_AGENT:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36
I noticed wrong one condition for this task:
IndexError: tuple index out of range, countneighbours, 8
сountneighbours(
((1,0,1,0,1),
(0,1,0,1,0),
(1,0,1,0,1),
(0,1,0,1,0),
(1,0,1,0,1),
(0,1,0,1,0),), 5, 4)
Here position is (5,4), while dimensions of array is 5x5. Because avalable position are from (0x0) to (4x4).
Best regards, Mike Khraptsov.
Created at: 2015/04/14 08:22; Updated at: 2015/04/15 06:23