Animal, Observations

I have couple of observations about the animal program.  It is fairly short, about 70 lines.

It was designed to be used with the caps lock on (or only upper case input).  To clean up this version I will need to either change the lines I converted to upper and lower case back to all upper case or modify the program to work with upper and lower case input.

Another thing I noticed is the first question expects one of three answers: yes, no or list.  The program handles yes and list but nothing is done with the no answer.  The no answer is for the end game.

The coding is pretty straight forward, but they use a creative binary tree to store the data, which in this case is the animal questions and answers.

The version I played in high school had a much larger group of animals stored in it and I believe they were stored on disk.

 

Posted in Apple //c, Apple IIe, Games, Programming Tagged with: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*