You should probably use the interactive program
gprolog in development. However, for testing your code,
I will use the GNU Prolog compiler program
described below. In order for this to work, you must declare
an initial goal, with a line of the form
For example, in the 99 bottles program linked above, this line would be
(Of course, the trailing period is crucially important.)
Save your program in a file called
in folders called
respectively for phases 1 and 2 of your project.
I will test your code in the same environment as the lab
machines in MI 302, using the commands
/usr/bin/gplc --no-top-level proj.pl ./proj
Details on the requirements for phase 2 of your project will be posted here.