[comp.ai.digest] ANIMAL in BASIC ???

dbrauer@humu.UUCP.UUCP (07/09/87)

Somewhere in the darkest reaches of my memory I recall seeing a listing
of the game ANIMAL in BASIC.  It's that old standby introduction to rule-based
reasoning that tries to deduce what animal you have in mind by asking
questions like "Does it have feathers?", "Does it have hooves?" etc.
The problem is that I described this program to my wife and she now wants
to program it on an Apple IIc for her elementary school students.  I believe
I saw the listing in an "Intro to AI" article in some magazine but I'm not 
sure.  I would prefer not to have to help her program the thing from
scratch so any pointers would be greatly appreciated.

			Thanks,

			David C. Brauer
			MilNet: dbrauer@NOSC.Mil

dbrauer@humu.UUCP (07/15/87)

Thanks to all who responded to my request for pointers to Animal in
BASIC.  The listing can be found in 101 BASIC Games by David H. Ahl.
There also may be a version on one of the Apple DOS distributions, 
although I haven't found it yet.  Please, no more lectures on why
Animal should not be called a rule-based or expert system.  I'm aware
that it is a simple tree traversal algorithm. Merely a misnomer on
my part.  I thought I had seen the listing in an "Intro to AI" slick,
that is why I worded the request that way.

                        David C. Brauer
                        MilNet: dbrauer@NOSC.mil

mshapiro@polyslo.UUCP (Mitch Shapiro) (07/17/87)

In article <8707090304.AA15222@humu.ARPA> dbrauer@humu.UUCP (David L.
Brauer) writes:
>Somewhere in the darkest reaches of my memory I recall seeing a listing
>of the game ANIMAL in BASIC.  It's that old standby introduction to rule-based
>reasoning that tries to deduce what animal you have in mind by asking
>questions like "Does it have feathers?", "Does it have hooves?" etc.

There was originally shipped with the Apple II's (maybe for subsequent 
machines as well) that very program written in BASIC.  It learned new
animals and stored them in a text file (I think).  But it did learn 
learn them.  Find someone you know who has an Apple II.  I believe this 
was shipped with DOS 3.1.  -- Yes, I have a pretty old Apple.  #7919 
just in case anyone out there cares.


Mitch Shapiro			
mshapiro@polyslo (well, for all of another 3 days, that is.)

"It has been said that when Science climbs the crest of the hill,
   it will see that religion has been sitting there all along."
		---  Dr. Harry Wolper