\subsection{Part 2: Implementation}
\subsubsection{Task 3: Translate Axioms}
-\lstinputlisting[title={domain-task1.pl},language=prolog]{./src/domain-task1.pl}
+\lstinputlisting[title={domaintask1.pl},language=prolog]{./src/domaintask1.pl}
\subsubsection{Task 4: The Planning Problem in Figure 1}
-\lstinputlisting[title={instance-task1.pl},language=prolog]{./src/instance-task1.pl}
+\lstinputlisting[title={instancetask1.pl},language=prolog]{./src/instancetask1.pl}
\subsubsection{Task 5: Crates go to Any Goal Location}
\subsubsection{Task 6: Inverse Problem}
% --- Successor state axioms ------------------------------------------
agent(AgentPlek, do(A, S)) :-
A = move(_, AgentPlek);
- A = push(OudeAgentPlek1, Richting), connected(OudeAgentPlek1, AgentPlek, Richting);
- not(A = move(AgentPlek, _)), not(A = push(AgentPlek, _)), agent(AgentPlek, S).
+ A = push(OudeAgentPlek1, Richting),
+ connected(OudeAgentPlek1, AgentPlek, Richting);
+ not(A = move(AgentPlek, _)), not(A = push(AgentPlek, _)),
+ agent(AgentPlek, S).
crate(Krat, Kratplek, do(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, Richting)),
+ connected(AgentPlek2, Kratplek, Richting),
+ crate(Krat, Kratplek, S).