repositories
/
mc1516pa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8befabf
)
annotations added in the code
author
Mart Lubbers
<mart@martlubbers.net>
Sun, 13 Mar 2016 09:22:07 +0000
(10:22 +0100)
committer
Mart Lubbers
<mart@martlubbers.net>
Sun, 13 Mar 2016 09:22:07 +0000
(10:22 +0100)
code/SokobanObjectwise.icl
patch
|
blob
|
history
diff --git
a/code/SokobanObjectwise.icl
b/code/SokobanObjectwise.icl
index
6c65c6d
..
4b9542d
100644
(file)
--- a/
code/SokobanObjectwise.icl
+++ b/
code/SokobanObjectwise.icl
@@
-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);",