質問編集履歴
1
文法の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -58,7 +58,7 @@
|
|
58
58
|
|
59
59
|
if c[x][y] == '#' or c[x][y] == '0':
|
60
60
|
|
61
|
-
return
|
61
|
+
return #壁または外周だったら戻る
|
62
62
|
|
63
63
|
elif c[x][y] == 'g':
|
64
64
|
|
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
|
82
82
|
|
83
|
-
s = np.argwhere(c=='s')
|
83
|
+
s = np.argwhere(c=='s') #スタート地点を探す
|
84
84
|
|
85
85
|
search(s[0][0], s[0][1])
|
86
86
|
|