16
F1 bots / Re: Cheddarmold (F1?) (Spork22)
« on: July 25, 2015, 08:46:21 PM »
OHHH. Ok
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
cond
*.in1 0 !=
*.in2 0 !=
stat
*.in1 *.out1 store
*.in2 *.out2 store
stop
def head 52
cond
*.eye5 0 =
start
314 rnd .aimdx store
stop
' Gene 9 Duplicate
cond
*.robage 0 !=
*.numties 0 =
*.head 0 =
*.kills *.refkills >
start
1 .head store
stop
'Gene 13 MB communication
cond
*.eye5 0 !=
*.head 1 =
start
*.eye5 .out2 store
*.aimdx .out3 store
stop
cond
*.in2 0 !=
*.head 0 =
start
*.in3 .aimdx store
stop
'/*****proper reproduction 1
cond
*.nrg
20000
>
start
50
.repro
store
'if time to reproduce store it
1
972
store
stop
cond
'/after robot reproduces it reproduces more until energy less then 3000
*972
1
=
start
50
.repro
store
stop
'***** 2
cond
*.nrg
3000
<
start
0
972
store
stop
cond
*.eye5 50 >
*.refeye *.myeye !=
start
-1 .shoot store
1 .up store
*.refxpos *.refypos angle .setaim store
stop
cond
*.refkills *.kills >
*.refeye *.myeye =
start
*.refxpos *.refypos angle .setaim store
1 .up store
stop
cond
*.refkills *.kills >
*.refeye *.myeye =
*.hit 0 >
start
1 .fixpos store
stop
cond
*.robage 5 mod 0 =
*.kills 0 >
start
1 .fixpos store
stop
cond
*.robage 5 mod 0 =
*.kills 0 =
start
0 .fixpos store
stop
cond
*.kills *.refkills >
*.refeye *.myeye =
start
1 .fixpos store
stop
cond
*.reffixed 0 >
*.refeye *.myeye =
start
1 .out1 store
stop
cond
*.kills *.refkills >
*.refeye *.myeye =
*.in1 1 =
start
0 .fixpos store
stop
def nrgratio 100
cond
*.kills 0 >
start
10 dup *.nrgratio sub sgn abs .nrgratio mult store
100 .strbody *.nrg *.body 10 div *.nrgratio ++ mult sub sgn 0 floor mult store
100 .fdbody *.body 10 div *.nrgratio mult *.nrg sub sgn 0 floor mult *.body 100 sub sgn 0 floor mult store
stop
cond
*.robage 25 mod 0 =
*.kills 0 =
start
628 .aimdx store
stop
cond
*.refkills *.kills >
*.kills 0 >
start
-2 .shoot store
1 .up store
*.refxpos *.refypos angle .setaim store
0 .fixpos store
stop
cond
*.refkills *.kills =
*.kills 0 >
start
-1 .shoot store
1 .up store
*.refxpos *.refypos angle .setaim store
0 .fixpos store
stop
end