Permalink
Browse files

Avoid trying to remove values already removed

  • Loading branch information...
1 parent 091698a commit 4713dca861cd318dcbae03f07367c3dc759a8e35 @fisadev fisadev committed Nov 23, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 simpleai/search/arc.py
View
4 simpleai/search/arc.py
@@ -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])

0 comments on commit 4713dca

Please sign in to comment.