NAME

aiprolog -- A simple Prolog shell using AI::Prolog.

SYNOPSIS

usage: aiprolog <optional prolog program name>

DESCRIPTION

aiprolog is a simple prolog shell using AI::Prolog as the backend.

See the documentation for more detail on the Prolog features that AI::Prolog currently accepts.

Commands

Commands specific to aiprolog:

"% more"     -- enables prompting for more results (default)
"% no more"  -- disables prompting for more results
"% nomore"   -- same as "no more"
"% halt"     -- stops the shell
"% help"     -- display this message

Note that the percent sign must preceed the command. The percent sign indicates a Prolog comment. Without that, aiprolog will think you're trying to execute a prolog command.

aiprolog-specific commands are case-insensitive.

The game

If you are hoping to use this to play the bundled "Spider" game, I recommend the following:

aiprolog location/of/spider.pro

At the prompt:

?- % no more

That disables the "More? (y/N)" query which gets very annoying while playing the game, though it's useful when you really want to program.

Then issue the "start" command (defined in "spider.pro").

?- start.