'Animal_Minimalis
'By: Nums
'Good for mutation sims and for
'newbies to see how a basic bot works.
'Contains everything necessary for it
'to survive and reproduce.
def g1num 71
def g2num 72
def g3num 73
def g4num 74
def g5num 75

' Gene 1 Food Finder
cond
start
 *.eye5 0 >
 *.refeye *.myeye != and
 *.refveldx .dx store
 *.refvelup 30 add .up store
 true
 *.thisgene .g1num store
stop

' Gene 2 Eat Food
cond
start
 *.eye5 50 >
 *.refeye *.myeye != and
 -1 .shoot store
 *.refvelup .up store
 true
 *.thisgene .g2num store
stop

' Gene 3 Avoiding Family
cond
start
 *.eye5 0 =
 *.refeye *.myeye = or
 314 rnd .aimdx store
 true
 *.thisgene .g3num store
stop

' Gene 4 Reproduce
cond
start
 *.nrg 20000 >
 10 .repro store
 true
 *.thisgene .g4num store
stop

' Gene 5 AntiVirus
cond
start
*.thisgene .g5num store
 *.robage 1 !=
   *.g1num 1 != 
    *.g1num 1 sub .delgene store clearbool
   *.g2num *.g1num sub 1 != 
    *.g2num 1 sub .delgene store clearbool
   *.g3num *.g2num sub 1 != 
    *.g3num 1 sub .delgene store clearbool
   *.g4num *.g3num sub 1 !=
    *.g4num 1 sub .delgene store clearbool
   *.g5num *.g4num sub 1 != 
    *.g5num 1 sub .delgene store clearbool
   *.genes *.g5num != 
    *.g5num 1 add .delgene store clearbool
stop
end 