Untitled AI Project 02

by Ruben

When some time ago I was bored I started this little AI experimental project (Actionscript-only, no Flex), tonight I had some time on my hands and decided to finish it.

The main reason behind this was to get a grasp of the utter basics of AI. Alongside that I also thought it'd be cool to try to have classes work with as little knowledge as possible about other classes. Do mind that this is not an example of best-practices, merely a little experiment of mine.

In this project is that there are three different types of organisms; rock (blue), paper (red) and scissors (green). Naturally if a paper encounters scissors then paper dies. If two organisms of the same type (i.e. two papers) encounter eachother, another organism of the same type will be born.

Check it out by clicking the image below, source-code is available as well. You can toggle the visualisation of the grid by hitting the space-bar.

Oh, and sorry for being too lazy to think of a clever name ;)