Author Topic: my bot. pls give it a name  (Read 6934 times)

Offline theblaze

  • Bot Builder
  • **
  • Posts: 82
    • View Profile
my bot. pls give it a name
« 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
« Last Edit: November 08, 2010, 06:52:06 AM by theblaze »

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
Re: my bot. pls give it a name
« Reply #1 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  ;)).
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline theblaze

  • Bot Builder
  • **
  • Posts: 82
    • View Profile
Re: my bot. pls give it a name
« Reply #2 on: June 30, 2010, 11:25:50 AM »
thanks


Offline theblaze

  • Bot Builder
  • **
  • Posts: 82
    • View Profile
Re: my bot. pls give it a name
« Reply #3 on: October 06, 2010, 01:26:49 PM »
ok I finally made an update (we were caught in the earthquake)

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Re: my bot. pls give it a name
« Reply #4 on: October 06, 2010, 05:16:54 PM »
(we were caught in the earthquake)

This one?

Are you a time traveler, sir?  Or maybe an immortal?

Offline theblaze

  • Bot Builder
  • **
  • Posts: 82
    • View Profile
Re: my bot. pls give it a name
« Reply #5 on: October 07, 2010, 11:17:32 AM »
the christchurch 1

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
Re: my bot. pls give it a name
« Reply #6 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?
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline theblaze

  • Bot Builder
  • **
  • Posts: 82
    • View Profile
Re: my bot. pls give it a name
« Reply #7 on: October 08, 2010, 09:17:08 AM »
no

Offline theblaze

  • Bot Builder
  • **
  • Posts: 82
    • View Profile
Re: my bot. pls give it a name
« Reply #8 on: October 08, 2010, 10:58:45 AM »
NEW! NEW! Viruses work! and I have protection from my own viruses

Offline Panda

  • Global Moderator
  • Bot Destroyer
  • *****
  • Posts: 476
  • Computer Science Undergraduate (nerd)
    • View Profile
Re: my bot. pls give it a name
« Reply #9 on: October 08, 2010, 01:52:46 PM »
Are you going to show us it?

Offline theblaze

  • Bot Builder
  • **
  • Posts: 82
    • View Profile
Re: my bot. pls give it a name
« Reply #10 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.

Offline theblaze

  • Bot Builder
  • **
  • Posts: 82
    • View Profile
Re: my bot. pls give it a name
« Reply #11 on: November 01, 2010, 05:07:28 AM »
fixed poison now.
Find it in first post

Offline theblaze

  • Bot Builder
  • **
  • Posts: 82
    • View Profile
Re: my bot. pls give it a name
« Reply #12 on: November 05, 2010, 06:48:22 AM »
added conspec recognition

Offline theblaze

  • Bot Builder
  • **
  • Posts: 82
    • View Profile
Re: my bot. pls give it a name
« Reply #13 on: November 08, 2010, 06:53:38 AM »
updated again
PLEASE COMMENT