What are all the algorithms involved in Farmville game, specifically I am interested in drawing trees that has fruits based on user's activities.
I am into a project which has a specific need to draw a tree-type image in SVG. I am not sure how to go about the algorithms to define the tree and based on certain business rules the leafs in the tree grows etc., I think you get the idea. Farmville is just an example I took to explain.
Any help is greatly appreciated..