finding a solution to a giving maze txt.file
- by alberto
how can i fix this program, the problem is when it print out the coordinate it give me a 7 for the start and finish, i would appreciated you help, thanks
start = (len(data))
finish = (len(data))
pos= []
for i in range(len(pos)):
for j in range(len(pos[i])):
if pos[i][j] == "S":
start=(i,j)
elif pos[i][j] == "F":
finish=(i,j)
print "S found in",start,
print "\nF found in",finish,"\n"