I'm trying to solve this in Java, but I'm failing the horizontal (and square) tests. The output I get is:
Standard Error Stream:
height=3,i=0: line = 0.0
height=3,i=1: line = ...
height=3,i=2: line = 0.0
Standard Output Stream:
0 0 -1 -1 -1 -1
(-1, -1) is not to the right of (0, 0). Expected (2, 0).
It seems to me that the right-hand neighbor of (0,0) doesn't exist (the value is '.'). I don't see why the correct answer would be (2,0). Can someone explain that to me? (My vertical tests succeeded).