Show Posts

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.


Topics - raberuji

Pages: [1]
1
DNA - General / I just owned myself =(
« on: October 16, 2010, 01:53:33 AM »
I just found out about challenge rules for like F1/F2 categories.... woa, i got alot of work to do =(

2
DNA - General / Hi I'm new =)
« on: October 13, 2010, 05:11:20 AM »
Hello everyone,

i liked darwinbot for a long time now but back in the days there was close to no community to share and discuss (or i was just unlucky at finding one). Its nice to see a place where i can get help (finally) since i got no real coding/programming skills (once i knew basic =/ ). So far i've made 2 bots with my "skills" in "trying lots of stuff". My 1st one is Glue the other is Mr Swarm. I don't know where they will end up but so far they're in the starting page. Well that's it for me tonight hope i'll see you guys around

3
F1 bots / Mr Swarm
« on: October 13, 2010, 05:05:00 AM »
Code: [Select]
' Mister Swarm v1.1
' Sight

cond
*.robage 1 <
start
0 .eye1dir store
-35 .eye2dir store
-35 .eye3dir store
-35 .eye4dir store
1028 .eye6dir store
35 .eye7dir store
35 .eye8dir store
0 .eye9dir store
300 .eye5width store
100 .eye6width store
50 .eye2width store
50 .eye8width store
43 .out1 store
stop

' Anti-Tie

cond
*.robage 1 <
start
.deltie inc
stop

' Edge

cond
*.edge 0 !=
*21 0 =
start
357 rnd .aimsx store
30 21 store
stop

' Timer

cond
*21 0 !=
start
21 dec
stop

' Movement

cond
*.eye5 0 =
*.velscalar 5 <
*.velup 5<
*.veldn 5<
*.velsx 5<
*.veldx 5<
start
23 inc
stop

cond
*23 100 >=
start
10 rnd .up store
0 23 store
stop


cond
*.eye4 1 >
*.eye5 0 =
*.in1 43 !=
*.velscalar 10 <
*.velup 10 <
*.veldn 10 <
*.velsx 10 <
*.veldx 10 <
start
5 .up store
stop

cond
*.eye4 1 >
*.eye5 1 >
*.in1 43 !=
*.velscalar 2 <
*.velup 2 <
*.veldn 2 <
*.velsx 2 <
*.veldx 2 <
start
2 .up store
stop

cond
*.eye3 1 >
*.eye7 0 =
start
22 inc
stop

cond
*.eye3 1 >
*.eye7 0 =
start
24 inc
stop

cond
*.eye1 1 >
*.eye9 0 =
*.eye4 0 =
*.in1 43 !=
start
25 inc
stop

cond
*.eye9 1 >
*.eye1 0 =
*.eye4 0 =
*.in1 43 !=
start
26 inc
stop

cond
*.in1 43 =
*.eye5 1 >
*.shoot 0 =
*27 0 <=
start
27 inc
stop

cond
*22 0 !=
start
35 .aimsx store
1 .up store
22 dec
stop

cond
*23 0 !=
start
35 .aimdx store
1 .up store
23 dec
stop

cond
*25 0 !=
start
140 .aimsx store
25 dec
stop

cond
*26 0 !=
start
140 .aimdx store
26 dec
stop

cond
*27 1 >=
*.shoot 0 =
*.reffixed 0 =
start
*.refaim .setaim store
27 dec
stop

cond
*.in1 43 =
*.eye5 1 >
*.shoot 0 =
start
5 .up store
stop

' Reproduction

cond
*.body 120 >=
*.nrg 8000 >
*.robage 100 >
start
50 .repro store
357 rnd .aimsx store
stop

' Body

cond
*.body 120 <
*.nrg 3000 >
start
100 .strbody store
stop

' Feed

cond
*.shoot 0 =
*.out2 0 !=
start
0 .out2 store
stop

cond
*.eye5 1 >
*.in1 43 !=
start
-1 .shoot store
1 .out2 store
1 .up store
stop

cond
*.in1 43 !=
*.reffixed 0 =
*.in2 1 =
start
*.refaim .setaim store
-1 .shoot store
1 .up store
stop

cond
*.fixpos 0 !=
start
0 .fixpos store
stop

end

Mr Swarm is a... well a swarming bot i guess ? lol I wanted some swarming both and that's what i came up with. Again one of my 1st (my second actually) bot in a long while. Comment a welcomed

p.s. : i can observe swarming behavior at around 50 bot population when food is scarce its also made to be use with no mutation

4
Untagged bots / Glue (nothing but a name)
« on: October 13, 2010, 05:00:24 AM »
Code: [Select]
' GLUE v1.2
' COUNTDOWN TIMER

' cond
' *21 0 !=
' start
' 21 dec
' stop

' cond
' *22 0 !=
' start
' 22 dec
' stop

cond
*23 0 !=
start
23 dec
stop

cond
*24 0 !=
start
24 dec
stop

cond
*25 0 !=
start
25 dec
stop

cond
*26 0 !=
start
26 dec
stop

cond
*27 0 !=
start
27 dec
stop

' DELETE BIRTH TIE

cond
*.robage 1 =
start
.deltie inc
stop

' EDGE

cond
*.edge 0 >
*27 0 =
start
618 rnd .aimdx store
15 27 store
stop


' BODY/MASS

cond
*.body 20 >
*.nrg 32000 <
start
100 .fdbody store
stop

' REPRODUCTION

cond
*.nrg 1000 >
*25 0 =
start
30 25 store
stop

cond
*.nrg 1000 >
*25 2 <
start
50 .repro store
stop

' SHELL

cond
*.nrg 20 >
*.shell 15000 <
start
.mkshell inc
.strbody inc
stop

cond
*.nrg 500 >
*.shell 32000 <
start
.mkshell inc
stop

' WASTE

cond
*.waste 50 >
start
-4 .shoot store
*.waste .shootval store
stop

' SIGHT

cond
*.robage 1 <
start
-210 .eye2dir store
-105 .eye3dir store
-35 .eye4dir store
35 .eye6dir store
105 .eye7dir store
210 .eye8dir store
300 .eye5width store
100 .eye6width store
50 .eye2width store
50 .eye8width store
42 .out1 store
stop

' FOWARD

cond
*.eye4 0 =
*.in1 != 42
start
20 .up store
stop

cond
*.eye4 0 >
*.eye5 1 >
*.in1 != 42
start
10 .up store
stop

' TURNS

cond
*.eye1 1 >
*.eye2 0 =
*.eye6 0 =
start
21 inc
stop

cond
*.eye9 1 >
*.eye8 0 =
*.eye6 0 =
start
22 inc
stop

cond
*21 0 !=
start
185 .aimsx store
21 dec
stop

cond
*22 0 !=
start
185 .aimdx store
22 dec
stop

' FEED

cond
*.eye5 1 >
*.in1 42 !=
*25 0 =
start
-1 .shoot store
stop

end

One of my 1st robot since ages. I don't have any coding/programming background and that's what i came up with so comment are welcome. It's far from perfect and messy and unclear but its not bad.

Pages: [1]