Note: Homeworks must be turned in at the beginning of class (or before)!
Concerning the Mac OS X version of SWI-Prolog, we have this from class member Phil Ulrich:
"You might want to make a note somewhere on your webpage to users of Mac OS X (I'm probably the only one, but you can never tell). Basically, just downloading their distribution of SWI-Prolog for OS X DOES NOT WORK, even if you install XDarwin (XFree86 on OS X). There's a conflict between some things SWI-Prolog expects to be defined that OS X doesn't actually define. However, it works fine if you download the full source code and compile it that way."
Phil also notes that it's possible to get rid of the warning from my version of mat385.swi:
To get rid of that warning that shows up after compiling, the one about "singleton variable: Preditor" (which I changed to Predator; no offense, but the spelling was bugging me ;)), I changed your prey rule to this: prey(Animal) :- eat(Predator,Animal), animal(Predator), animal(Animal). This also makes sure that in the event that someone makes up some strange relation where grass or algae winds up eating something, that something is still not its prey.