'A simple Fractal (repeating patern) 
'like a tree who splits its branches 
'By PeterB

'For some unknown reason dont make it a vegetable 
'That doesnt endup with a nice shape, I dont know why that is.
'So it has to be like animal.. perhaps a sea sponge or coral?
'Dough i have not yet implemented feeding, or further reproducing.
'As this is mainly to show others the code used, so others can use it too.  
'and experiment with it.

' I want to note.
' That its intresting to see that DNA meets fractals trough the logic of DarwinBots
' As we now fractals, also shape lots of what we see in nature.
' See how little rules are required in genetic code
' Maybe someone can make an advantage out of it, and make use of it like nature does.






'--------------------------
'most important part :


cond
*971 10 <
*.robage  5 >
start
971 inc
20 .repro store
1256 20 div .aimdx store
stop



'--------------------------
'The parts below mainly deal with getting some distance from its parent.
'Create a new .tie who will persist over time
'And after the tye has been created it rotates.
'I could have scripted it in less genes but that makes it harder to understand.


cond
*.robage = 0
start
*.tiepres .deltie store
stop


cond
*.robage = 1
start
'*.tiepres .deltie store
 *.nrg 5 mult 8 add .dn store
stop


cond
*.robage = 4
start
.tie inc
stop


cond
*.robage = 5
start
1256 3 div .aimdx store
stop




' its better to fix its pos for a second or it may move to much
' it is not realy required to use this
cond
*.robage 15 =
start
.fixpos inc
stop

cond
*.robage 15 =
start
.fixpos dec
stop