Basic Reproduction Working

Fig 1

Fig 2

This is a very basic level of reproduction when one plant can make a copy of itself, similar to mitosis. At this stage the Plant class (displayed as a sphere) outputs a boolean which becomes true when the plant is able to breed. When this becomes true a function is called which creates a new node on the linked list (described in Log 09/03/2012) imagine this as a box which holds a plant, each node carries a new plant. There is a boolean for if each plant is a child if it is moves in a random direction away from it’s parent.

On improvement needed here is to make each plant only able to have one child in the time it is able to bread because the program runs so fast that all the spheres in Fig1 are the children of one parent.

About evolvegold

I am a third year student doing Creative computing at Goldsmiths college University of London. View all posts by evolvegold

Leave a comment