by Code6226 » Sun Jan 31, 2010 7:09 am
Change some parameters of the forest growing algorithm.
The max Trees per area is now equal to one of its axis, so a 50x50 area has max 50, and a 30x30 area has max 30.
If you start with a blank area, the first Sapling grows in after 1 minute.
A Sapling takes 3 minutes to grow into a Tree.
A Tree takes 8 minutes to become a Parenting Tree.
Up to 3 Saplings can exist at a time. All 3 can spawn every minute, but only from parenting trees. A single parenting tree can only make one Sapling per minute.
So, if you chop down all trees, it will take 3.5 minutes for a Tree to grow back (~0.5min for Sapling, 3min more to evolve into a Tree). So about 1/3 of a Tree per minute.
If you leave at least 3 parenting trees alone, they will spawn 3 Sapling Trees the next minute, which will then grow into 3 Trees 3 minutes later. So about 1 Tree per Minute.
How long does it take to go from no trees to 3 parenting trees?
1 minute for the first sapling, 3 minutes to be a tree, 8 more minutes to be a parenting tree and spawn the next Sapling (at 12min).
3 minutes for the 2nd one to become a real tree, 8 minutes for it to also be a parenting tree.
But the first parenting tree can now produce one sapling per minute, which would happen before the next Parenting Tree is ready. So:
01min - 1 Sapling A
04min - 1 Tree A
12min - 1 Parenting Tree A, made Sapling B
13min - 1 Parenting Tree A, made Sapling C
14min - 1 Parenting Tree A, made Sapling D
15min - 1 Parenting Tree A, 1 Tree B
16min - 1 Parenting Tree A, 2 Trees B,C
17min - 1 Parenting Tree A, 3 Trees B,C,D
...
23min - 2 Parenting Trees A,B ...
24min - 3 Parenting Trees A,B,C ...
And this is assuming the 1 Parenting Tree always picks a legal place for its offspring. Every minute, the alg will loop through up to 20 random parenting trees, and for each, try to spawn a sapling randomly around it, until 3 Saplings are reached. Each parenting tree only gets one chance. If you only have one Parenting Tree with 2 trees next to it, the chances that it can find a valid place for its sapling is much lower than if you had 20 Parenting Trees. But the chance that you get your core 3 parenting trees without much fail is high. I'd roughly say 25min to get the core forest going.
During that process, if you have 1 Parenting tree, you already get 1/2 Trees/min, see:
00min - 1 Parenting Tree
01min - 1 Parenting Tree, makes Sapling E
02min - 1 Parenting Tree, makes Sapling F
03min - 1 Parenting Tree, makes Sapling G
04min - 1 Parenting Tree, Tree E
05min - 1 Parenting Tree, Tree E,F
06min - 1 Parenting Tree, Tree E,F,G
3 Trees in 6 Minutes with 1 Parenting Tree
.
Notably you have an 8 minute Drough, if you want to go from 0 Parenting Trees to 1 Parenting Tree (that you don't harvest). So for 8 minutes, you have a 0 Trees/min harvest capacity.
With 2 Parenting Trees:
00min - 2 Parenting Trees
01min - 2 Parenting Trees, make Sapling X,Y
02min - 2 Parenting Trees, make Sapling Z
03min...
04min - 2 Parenting Trees, Tree X,Y
05min - 2 Parenting Trees, Tree X,Y,Z
3 Trees in 5 Minutes with 2 Parenting Trees: 3/5 Trees / Min
With 3 Parenting Trees:
00min - 3 Parenting Trees
01min - 3 Parenting Trees, make Sapling X,Y,X
...
04min - 3 Parenting Trees, Tree X,Y,Z
3 Trees in 3 Minutes... 4/5 Trees/Min
So 48 Trees per Hour... Oh, 48. Apparently the number of SC (each Plank has 48HP, based on 48 hours of 1hp damage per Plank).
Code like you want to win!