Skip to content

Commit 561cd98

Browse files
committed
Add BFS task, visualization and solution
1 parent 0216fde commit 561cd98

File tree

3 files changed

+431
-285
lines changed

3 files changed

+431
-285
lines changed

search.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ def draw_move(start, end, style='o-', color='tab:green'):
190190

191191

192192
def show_plan(state, plan, interactive=False):
193+
plan = plan or ''
193194
if type(plan) != str:
194195
raise ValueError("Plan musi byt retezec akci.")
195196
if any(a not in 'lfr' for a in plan):

0 commit comments

Comments
 (0)