Infector
This was an exploration in trying to create a kind of artificial intelligence. I was really inspired by Conway's Game of Life and how a very simple set of rules can create an almost living organism.
In my exploration there are a simple set of rules, all the purple cells are moving randomly around, when you click one of the purple cells it will get infected and turn red. If a red cell intercepts another healthy cell, that cell will also get infected and will start infecting other healthy cells.
At some point all the healthy cells will have become infected, and in order for the system to regulate it self if a red cell doesn’t infect a purple in a given amount of time, it will starve and turn into a purple cell agin. In order to give the system a fighting chance, the green cells operate as healer cell, and will turn a red cell into a purple cell.
All of this might seem really complex, but it is actually fairly simple when you break it down.
If healthy cell touches healthy cell nothing happens.
If infected cell touches healthy cell the healthy cell gets infected.
If infected cell touches another infected cell nothing happens.
If a healer cell touches an infected cell the infected cell will turn into a healthy cell.
If a infected cell doesn’t touches another cell for a given amount of time it will starve.
This was my first stab at object oriented programming, and i had a lot of fun with it, and really enjoyed trying to figure out how to accomplices my goal.



