Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Sunday January 23, 2005
02:09 AM

A new AI::Prolog

[ #22844 ]

I've uploaded another AI::Prolog version. The code is slowly getting cleaner and it has about 150 tests. There's a new "monkey gets banana" example that is based on the monkey and banana code. This code is a rather interesting example because it tends to show more of the "AI" side of Prolog. From the page describing it:

There is a monkey at the door into a room. In the middle of the room a banana is hanging from the ceiling. The monkey is hungry and wants to get the banana, but he cannot stretch high enough from the floor. At the window of the room there is a box that the monkey can use.

The monkey can perform the following actions: walk on the floor, climb the box, push the box around (if he is already at it), and grasp the banana if he is standing on the box and directly underneath the banana.

Can the monkey grasp the banana?

And in other news, I scored a perfect copy of The Art of Prolog at Powell's Technical Books. Amazon's lowest price is $72.82. I got mine for $21 :)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Congratulations, solving the Monkey-and-Banana problem is a major milestone in a Prolog or other AIish rules engine implementation!

    Art of Prolog [] is an excellent book, it was the text for the graduate class in Prolog back-when.

    Powells Books sounds cool, haven't bought from them yet, would love to see the store sometime too. For linking a book, I use [] since it's so simple a link and doesn't favor one vendor (and they're pretty good for both new and used searching either). As a former used-and-rare

    # I had a sig when sigs were cool
    use Sig;