Skip to content

Commit

Permalink
solve error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragneel7 committed Jan 12, 2018
1 parent f6e3985 commit cbf56f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion search.ipynb
Expand Up @@ -407,7 +407,9 @@
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
Expand Down
6 changes: 3 additions & 3 deletions search.py
Expand Up @@ -462,12 +462,12 @@ def show_path(self,initial):
move = []
for i in range(0,len(self.path)):
move.append(''.join(str(x) for x in self.path[i][0]))
print("Number of explored nodes by the following heuristic are: ", len(set(move)))

print("Number of explored nodes by the following heuristic are: ", len(set(move)))
print(initial)
for i in reversed(self.final):
print(i)
#self.path.clear()
#self.final.clear()

del self.path[:]
del self.final[:]
return
Expand Down

0 comments on commit cbf56f5

Please sign in to comment.