My esteemed programming partner Adam Denny and I crafted this piece of software for our final project in Introduction to Computer Science. More specifically, it was written in python, and it utilized a few very basic graphics modules our professor had created in order to be able to interface with OpenGL.
As you may or may not be able to tell from the video, the fish have been programmed to generate themselves randomly and detect collisions with the borders of the aquarium as well as with each other. In the event of fish-on-fish action, the larger fish makes a feast out of the smaller fish, grows bigger, and slows down. This vicious cycle continues until there is only one. This last fish is often referred to in fish circles as "the one to rule them all," and as such tends to get all the fish ladies.
We had originally planned it so that an even bigger, ultimate fish comes in out of nowhere to eat each and every thing inside the program with one epic gulp, but in the end, this monster fish had to be thrown out the window in order to satisfy time constraints.
Expect to see more of this kind of thing in future posts.
Comments