(7, 9)
(9, 7)
(9, 11)
(11, 9)
N
(5, 9)
(7, 7)
(7, 11)
(9, 9)
N
(5, 7)
(7, 5)
(7, 9)
(9, 7)
N
(5, 5)
(7, 3)
(7, 7)
(9, 5)
N
(3, 5)
(5, 3)
(5, 7)
(7, 5)
N
(1, 5)
(3, 3)
(3, 7)
(5, 5)
N
(1, 3)
(3, 1)
(3, 5)
(5, 3)
N
(1, 1)
(1, 5)
(3, 3)
N
(1, 3)
(3, 1)
Traceback (most recent call last):
File "ai.py", line 177, in <module>
dfs()
File "ai.py", line 153, in dfs
findpath()
File "ai.py", line 150, in findpath
if pos == dest or findpath(): return True
File "ai.py", line 150, in findpath
if pos == dest or findpath(): return True
File "ai.py", line 150, in findpath
if pos == dest or findpath(): return True
File "ai.py", line 150, in findpath
if pos == dest or findpath(): return True
File "ai.py", line 150, in findpath
if pos == dest or findpath(): return True
File "ai.py", line 150, in findpath
if pos == dest or findpath(): return True
File "ai.py", line 150, in findpath
if pos == dest or findpath(): return True
File "ai.py", line 150, in findpath
if pos == dest or findpath(): return True
File "ai.py", line 139, in findpath
val = valid(neighbours0(pos[0],pos[1]))
File "ai.py", line 128, in valid
if tempmaze[((e[0]+pos[0])/2)][((e[1]+pos[1])/2)][0]==0:
TypeError: 'int' object is unsubscriptable