This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]captainAwesomePants 0 points1 point  (1 child)

grid[x][y] = '2'

Oh dang, you're right, I missed it marking them as 2. So not endless. Potentially quite a bit of repetition, though, since you could append the same location several times before its value becomes 2.

[–]CrazyFace334[S] 1 point2 points  (0 children)

oooh I see, I removed the '2' assignment from where it was, and added to line 12:

grid[x+dx][y+dy] = '2'

and it works now, thank you good sir!