Skip to content

Commit

Permalink
Avoid trying to remove values already removed
Browse files Browse the repository at this point in the history
  • Loading branch information
fisadev committed Nov 23, 2013
1 parent 091698a commit 4713dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simpleai/search/arc.py
Expand Up @@ -26,8 +26,8 @@ def revise(domains, arc, constraints):

modified = False

for x_value in domains[x]:
for neighbors, constraint in related_constraints:
for neighbors, constraint in related_constraints:
for x_value in domains[x]:
constraint_results = (_call_constraint({x: x_value, y: y_value},
neighbors, constraint)
for y_value in domains[y])
Expand Down

0 comments on commit 4713dca

Please sign in to comment.