annotations added in the code
authorMart Lubbers <mart@martlubbers.net>
Sun, 13 Mar 2016 09:22:07 +0000 (10:22 +0100)
committerMart Lubbers <mart@martlubbers.net>
Sun, 13 Mar 2016 09:22:07 +0000 (10:22 +0100)
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);",