Bots and Simulations > F1 bots

Russia (F1 League)(By Spike43884)11-19-2014

(1/2) > >>

spike43884:
Possibly more correctly should be called Siberia, if it gets to a *dangerously* low NRG it will shut down all of functions, and store access's except 1 specific gene which is the one that initiates the hibernation, which will simply stores 1 into hibernation each cycle, presuming all eyes see nothing, and its in a very low NRG state...this is quite a powerful bot, it also has NRG sharing function implemented presuming it goes into MB form (my counter-mb tactics are pretty rudimentary so if they fail I like this mb support). Not to be feared as i've noted a lot of the time when its just sitting there with nothing to do, it actually loses 0 energy, which is quite a substantial thing.

Latest version of code:

--- Code: ---'Russia (F1 League)
'By Spike43884
'Originally All Eyes V1.5
'This bot goes into hibernation whilest waiting
'Dev Info:
'Hibernation Sys - TRUE
'Hunting Sys - AllEyes
'Corpsify - UNKNOWN
'Confusion - TRUE


'Just some free variables
def attack 50
def hibernate 51


'Initialisation (EYES)
cond
*.robage 2 <
start
 135 .eye1width store
 135 .eye2width store
 135 .eye3width store
 135 .eye4width store
 15 .eye5width store
 135 .eye6width store
 135 .eye7width store
 135 .eye8width store
 135 .eye9width store
 410 .eye1dir store
 300 .eye2dir store
 190 .eye3dir store
 80 .eye4dir store
 0 .eye5dir store
 -80 .eye6dir store
 -190 .eye7dir store
 -300 .eye8dir store
 -410 .eye9dir store
 .aimsx .vloc store
 128 .venval store
stop



' Gene 1 Initiate Hibernation (waiting)
cond
*.eye1 0 =
 *.eye2 0 = and
 *.eye3 0 = and
 *.eye4 0 = and
 *.eye5 0 = and
 *.eye6 0 = and
 *.eye7 0 = and
 *.eye8 0 = and
 *.eye9 0 = and
 *.refeye *.myeye = or
 *.nrg 3000 < and
 *.hibernate 0 = and  'KEY
start
 1 .hibernate store
stop

' Gene 1 Search (waiting)
cond
*.eye1 0 =
 *.eye2 0 = and
 *.eye3 0 = and
 *.eye4 0 = and
 *.eye5 0 = and
 *.eye6 0 = and
 *.eye7 0 = and
 *.eye8 0 = and
 *.eye9 0 = and
 *.refeye *.myeye = or
 *.nrg 3000 >= and
start
 10 rnd .aimdx store
stop


'Gene 2 Food Sighted
'*********************
cond
*.refeye *.myeye !=
*.eyef 0 !=
start
1 .attack store
stop

cond
*.refeye *.myeye =
*.eyef 0 = or
start
0 .attack store
stop

cond
*.eye1 0 >
*.attack 0 =
start
550 .aimdx
0 .hibernate store
stop

cond
*.eye2 0 >
*.attack 0 =
start
405 .aimdx
0 .hibernate store
stop

cond
*.eye3 0 >
*.attack 0 =
start
260 .aimdx
0 .hibernate store
stop

cond
*.eye4 0 >
*.attack 0 =
start
115 .aimdx
0 .hibernate store
stop

cond
*.eye6 0 >
*.attack 0 =
start
115 .aimsx
0 .hibernate store
stop

cond
*.eye7 0 >
*.attack 0 =
start
260 .aimsx
0 .hibernate store
stop

cond
*.eye8 0 >
*.attack 0 =
start
405 .aimsx
0 .hibernate store
stop

cond
*.eye9 0 >
*.attack 0 =
start
550 .aimsx
0 .hibernate store
stop
'*********************


' Gene 3 Chase Food
cond
*.eye5 0 >
 *.refeye *.myeye !=
start
 *.refveldx .dx store
 *.refvelup 30 add .up store
stop


' Gene 4 Long Range Food Handling

cond
 *.eye5 50 >
 *.refeye *.myeye !=
 *.refeye 0 >
 *.hibernate 0 =
start
1 rnd 2 mult 3 sub .shoot store
216 .shootval store
stop

' Gene 5 Eat Food
cond
 *.eye5 50 >
 *.refeye *.myeye !=
 *.hibernate 0 =
 *.refeye 0 =
start
-1 .shoot store
 *.refvelup .up store
stop

'venom

cond
 *.hibernate 0 =
 *.venom 50 <
start
10 .strvenom store
stop

' Gene 6 Avoiding Family
cond
 *.eye5 0 =
 *.refeye *.myeye = or
 *.hibernate 0 =
start
 314 rnd .aimdx store
stop

' Gene 7 Reproduce
cond
 *.nrg 20000 >
 *.robage 3 > and
start
 15 .repro store
stop

'*-*-*-*-*-*-*-*-*-*-*-*

' Gene 8 tie to parent
cond
*.robage 0 =
start
.tie inc
stop

' Gene 9 sever tie to parent
cond
*.robage 1 =
start
.deltie inc
stop


'Gene 10 If MB Stuff
cond
 *.multi 1 = or
 *.hibernate 0 =
start
 45 .sharenrg store
stop
end

--- End code ---

Thanks Shadowgod!Seriouslys.

spike43884:
Oh wow, if you put 5 russia as whtie colouring, 5 animal minimalis as red colouring, and 15 alga minimalis as blue colouring, and look at populations then you get the flag of the russian federation eventually

spike43884:
Just because I want to make a point, I made a sim of huge size, with only 5 starting veg but gave each veg a lot of energy, so it was sparsely populated clusters to make it reasonably hard, of course RUSSIA devastates the enviroment.
But, its also a incredibly efficient species, 4640 cycles in and The sim, purely for fun only had alga_mimalis_chloroplastus and RUSSIA, its now at 7 Corpse, 38 Alga_Mimalis_Chloroplastus and 1153 Russia!
WOW, how is 1K of my bot living off 38 veggies, I DO NOT KNOW, and its not like their even cancerous, about 40% of all the bots are 2/3rds of standard spawning size or greater.

Shadowgod2:
Yep I'll look at it tonight.

spike43884:

--- Quote from: Shadowgod2 on November 17, 2014, 02:53:12 PM ---Yep I'll look at it tonight.

--- End quote ---
Thx, that was quick...
Actually, if you need busy time...Aggressive dwarfs MK2, All Eyes (just do 1.5) and All Swarm also need a energy saving treatment, they work with nocosts and survive better than most other bots, just...costs, ugg.
I always said it'd be better to live with no gravity, less cost.

Navigation

[0] Message Index

[#] Next page

Go to full version