bfs #1

Open
s481876 wants to merge 3 commits from s481876/ai-wozek:main into main
Showing only changes of commit 9fcded9ddc - Show all commits

View File

@ -280,7 +280,8 @@ def bfs(isstate,final):
explored.append(node)
successors=succ(node)
for successor in successors:
fringe.append(successor)
if (successor not in fringe and successor not in explored):
fringe.append(successor)
# Main game loop
def game_loop():