started with a python runner script
[mc1516pa.git] / code / SokobanObjectwise.icl
index 6c65c6d..4b9542d 100644 (file)
@@ -41,11 +41,12 @@ encode p = join "\n" [
        "--Agent not on the box",
        "INVAR " <+ encodeAgentNotOnBox boxnums <+ ";",
        "--Box not on box",
-       encodeBoxOnBoxes (indexList boxes),
+       encodeBoxOnBoxes boxnums,
        "--Goal state",
        "INVAR " <+ encodeGoalState boxnums targetPos <+ ";",
-       "",
+       "--Agent movement",
        encodeObMovement "agent",
+       "--Box movement",
        encodeBoxMovement boxnums,
        "CTLSPEC ! EF (movement = finished);",