Who Stole My Horse?


My Alice Programming Project. ENJOY!

1) What's the story?

A cowboy rides into town and stops at a saloon for a drink. Unfortunately, the locals here always have a habit of picking on strangers, which he happens to be. When he finishes his drink, he finds that his horse has been stolen! Want to know what happens next? Scroll down for more details!

Can't wait to find out what happens next? Click on this link Download my Alice program

2) The technicalities...I'm sure you're wondering just HOW I made this program?

Well, first and foremost, I thought about some possible stories that were simple enough for me to re-tell using the Alice program. I finally remembered a joke that someone once told me, so I used it for this project. Luckily enough, the Alice program already had a "cowboy" object and a "horse" object for me to use. However, as I'm sure you will notice, the other objects (i.e. the people) are quite random because Alice did not have the appropriate characters for my idea. However, since any group of "objects" (i.e.people) would do for this project, I used a variety of ten objects in total. I decided to start off defining methods for the cowboy because he had the most actions to carry out. Most times, the other objects were mainly only reacting to what he did. I then defined methods for the other objects, making sure that each reaction coincided with the one before and after it. I used the "Dirt" world because it was most fitting for the setting of my story, which is basically in a rural setting and both world methods and class methods were used when necessary.

3) The program

Finally, what you've been waiting for (if you haven't already had a peek of the program)! Click on the following link to view the program. Download my Alice program

Page made by SEFALANA MATAMBO