Commits

Luke Plant committed 821ebef

Improved algo slightly

  • Participants
  • Parent commits dfcdb18

Comments (0)

Files changed (1)

File seating_planner.py

 
     plan.append(t1)
     plan.append(t2)
-    return plan
+
+    if p1 == -1 and p2 == -1:
+        # We just swapped two empty seats. Try again:
+        move(plan)
 
 
 def normalise_plan(plan):