Is anybody else having trouble with Assignment 4? In particular Quesion 3 & 4? I have typed out the programs using all the procedures defined in the book, but I am not getting the results I need.
Q3 seems to run forever, and Q4 just gives me an answer of "no"
Don't know what to do, i have checked the programs thoroughly and proof read it about 5 times.
Just wondering if anybody else is having this problem... I have a feeling its just me...
um... question 3 is not supposed to be a program.. its supposed to be a paper question like q2.
not going to say much about q4 cause I got lazy and copied last years answer just so I could submit something - but that also causes an error after outputing two answers
What i wanted to do for q3 was type out program and run the query on it, and then the plan it outputs is only what i need. But my program is running forever and ever and ever! Anyways, i will just figure it out without typing out the program, because i think it is stuck in a loop somewhere.
As for q4, i don't have much time to work on this, so i am just going to submit my program the way it is.
And q2 is taking me so long to trace... going to have to cut a few corners there.
Find an action that achieves on(c,1):
Move(c, From, 1) for any From. Look at the can function to find a pre-condition for this action:
[clear(c), clear(1), on(c, From)]
clear(1) is not in the initial state so this becomes the new goal.