finding a solution to a giving maze txt.file

Posted by alberto on Stack Overflow See other posts from Stack Overflow or by alberto
Published on 2010-05-22T17:33:28Z Indexed on 2010/05/22 17:40 UTC
Read the original article Hit count: 192

Filed under:

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"

© Stack Overflow or respective owner

Related posts about python