fixed the horror bug
authorMart Lubbers <mart@martlubbers.net>
Tue, 28 Oct 2014 16:15:30 +0000 (17:15 +0100)
committerMart Lubbers <mart@martlubbers.net>
Tue, 28 Oct 2014 16:15:30 +0000 (17:15 +0100)
report/src/domaintask1.pl

index 17ab88f..dadf72c 100644 (file)
@@ -19,18 +19,18 @@ poss(push(From, Direction), S) :-
        not(crate(_, CrateTarget, Direction)).
 
 % --- Successor state axioms ------------------------------------------
-agent(AgentPlek, do(A, S)) :-
+agent(AgentPlek, result(A, S)) :-
        A = move(_, AgentPlek);
        A = push(OudeAgentPlek1, Richting),
-       connected(OudeAgentPlek1, AgentPlek, Richting);
+               connected(OudeAgentPlek1, AgentPlek, Richting);
        not(A = move(AgentPlek, _)), not(A = push(AgentPlek, _)),
-       agent(AgentPlek, S).
+               agent(AgentPlek, S).
        
-crate(Krat, Kratplek, do(A, S)) :-
+crate(Krat, Kratplek, result(A, S)) :-
        A = push(AgentPlek, Richting), 
                connected(AgentPlek, OudeKratPlek, Richting),
                connected(OudeKratPlek, Kratplek, Richting),
                crate(Krat, OudeKratPlek, S);
-       not(A = push(AgentPlek2, Richting)),
-       connected(AgentPlek2, Kratplek, Richting),
-       crate(Krat, Kratplek, S).
+       not(A = push(AgentPlek2, Richting2)),
+               connected(AgentPlek2, Kratplek, Richting2),
+               crate(Krat, Kratplek, S).