Darwinbots Forum

Bots and Simulations => Bestiary => Interesting behaviour bots => Topic started by: theblaze on June 29, 2010, 07:12:39 AM

Title: my bot. pls give it a name
Post by: theblaze on June 29, 2010, 07:12:39 AM
i made a bot which uses ties to feed.pls give suggestions for me to work on.
Code: [Select]
cond
*.robage 0 =
start
52 inc
stop

cond
*52 1 !=
start
*.thisgene .mkvirus store
*.myeye *.myshoot add 32000 mult 50 add 32000 ceil .vshoot store
.delgene dec
stop

cond
start
2 .mkvirus store
10 .vshoot store
stop



cond
*.eye1
0
>
start
34.9
.aimsx
store
stop

cond
*.eye9
0
>
start
34.9
.aimdx
store
stop

cond
*.eye2
0
>
start
34.9
.aimsx
store
stop

ond
*.eye8
0
>
start
34.9
.aimdx
store
stop

cond
*.eye3
0
>
start
34.9
.aimsx
store
stop
cond
*.eye7
0
>
start
34.9
.aimdx
store
stop

cond
*.eye4
0
>
start
34.9
.aimsx
store
stop

cond
*.eye6
0
>
start
34.9
.aimdx
store
stop

cond
*.eye5
0
>
start
*.refveldx
.dx
store
*.refvelup
30
add
.up
store

cond
*.nrg
10000
>
start
50
.repro
store
10
.aimdx
store
stop


cond
*.waste
1
>
start
.backshot
inc
-4
.shoot
store
*.waste
.shootval
store
stop

cond
start
.fixpos *.fixed mult dec
stop

cond
robage 0 =
start
.shoot .ploc store
stop

cond
*.shell 2500 <
*.nrg 2000 >
start
100 .mkshell store
stop


cond
*.numties 0 >
*.in1 1 !=
start
-1 .tieloc store
-1000 .tieval store
*.tiepres .tienum store
stop
cond

*.slime 90 <
*.nrg 3000 >
start
100 .mkslime store
stop

cond
*.tiepres *.feedtie =
start
-1000 .tieval store
*.tieval 1000 div .tieloc store
stop

cond
*.robage 0 =
start
.deltie
inc
stop

cond
*.robage 1
 =
start
.deltie
inc
stop


cond
*.nrg 5 >
start
1
.tie
store
stop


cond
*.nrg
2000
>
start
10
.strbody
store
stop

cond
*.nrg
50
<
start
1
.fdbody
store
stop




cond
*.edge
1
=
start
10
.dn
store
stop

cond
*.poison
1000
>
*.nrg 1000 <
start
8 .ploc
store

cond
start
99 .sharenrg *.multi mult store
.sharewaste *.multi mult inc
stop
cond
*.out1 1 !=
start
1 .out1 store
stop

end
Title: Re: my bot. pls give it a name
Post by: bacillus on June 30, 2010, 12:38:04 AM
I'm not quite sure what's going on with your turning genes, but
34.9
.aimsx
store
Is not a valid syntax-remember, DB does not take decimals.

Also, it might be a good idea to do something like this, for example:

cond
*.eye2 0 >
*.eye5 0 =
start
...

You don't really want to turn away from food once you have it centered in your vision - remember, the code is read in order, so the eye9 turn command will override every previous turn command in the DNA. So instead of having this structure:

1
2
3
4
5
6
7
8
9

You want this, causing minimal turning:
1
9
2
8
3
7
4
6
5

(And also *.eye5 0 = in every command, or 0 .aimdx store in the eye5 command).
The bot itself looks good overall, just play out in your mind the sequence of events to catch out these easily avoidable mistakes (don't worry, it comes more easily than you think  ;)).
Title: Re: my bot. pls give it a name
Post by: theblaze on June 30, 2010, 11:25:50 AM
thanks

Title: Re: my bot. pls give it a name
Post by: theblaze on October 06, 2010, 01:26:49 PM
ok I finally made an update (we were caught in the earthquake)
Title: Re: my bot. pls give it a name
Post by: Numsgil on October 06, 2010, 05:16:54 PM
(we were caught in the earthquake)

This one (http://en.wikipedia.org/wiki/1812_New_Madrid_earthquake)?

Are you a time traveler, sir?  Or maybe an immortal?
Title: Re: my bot. pls give it a name
Post by: theblaze on October 07, 2010, 11:17:32 AM
the christchurch 1
Title: Re: my bot. pls give it a name
Post by: bacillus on October 08, 2010, 05:03:47 AM
Heh, I have a lot of friends down South - most of them complained because facebook stopped working  :P

It probably wasn't heard of much around the world, there was a magnitude 7.1 earthquake in New Zealand. No casualties though...did you guys get much damage?
Title: Re: my bot. pls give it a name
Post by: theblaze on October 08, 2010, 09:17:08 AM
no
Title: Re: my bot. pls give it a name
Post by: theblaze on October 08, 2010, 10:58:45 AM
NEW! NEW! Viruses work! and I have protection from my own viruses
Title: Re: my bot. pls give it a name
Post by: Panda on October 08, 2010, 01:52:46 PM
Are you going to show us it?
Title: Re: my bot. pls give it a name
Post by: theblaze on October 09, 2010, 07:53:55 AM
I have edited the first post and put it on internet mode.
If you are on internet mode those little blue things are my viruses.
Title: Re: my bot. pls give it a name
Post by: theblaze on November 01, 2010, 05:07:28 AM
fixed poison now.
Find it in first post
Title: Re: my bot. pls give it a name
Post by: theblaze on November 05, 2010, 06:48:22 AM
added conspec recognition
Title: Re: my bot. pls give it a name
Post by: theblaze on November 08, 2010, 06:53:38 AM
updated again
PLEASE COMMENT