Darwinbots Forum
Bots and Simulations => Bestiary => Untagged bots => Topic started by: Gaiacarra on October 14, 2007, 11:42:20 AM
-
My first ever full bot, pretty basic but an ok search pattern.
'Artemis Minimalis
'By Gaiacarra October 2007
'Has basic but fairly efficient hunting instincts.
'Will not kill its own young.
'''''''''''''''''''''''''''''''''''''
'Wander if there's nothing to eat
'''''''''''''''''''''''''''''''''''''
cond
*.eye5 0 =
start
314 rnd .aimdx store
60 .dn store
stop
'''''''''''''''''''''''''''''''''''''
'Don't eat young conspecifics
'''''''''''''''''''''''''''''''''''''
cond
*.refeye *.myeye =
500 *.robage > and
start
314 rnd .aimdx store
stop
'''''''''''''''''''''''''''''''''''''
'Lock-On to targets
'''''''''''''''''''''''''''''''''''''
cond
*.eye3 *.eye5 >
*.eye3 *.eye7 <
start
-25 .aimdx store
stop
cond
*.eye7 *.eye5 >
*.eye7 *.eye3 >
start
25 .aimdx store
stop
cond
*.eye5 0 >
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop
'''''''''''''''''''''''''''''''''''''
'Open fire
'''''''''''''''''''''''''''''''''''''
cond
*.eye5 50 >
start
-1 .shoot store
*.refvelup .up store
stop
'''''''''''''''''''''''''''''''''''''
'Reproduce
'''''''''''''''''''''''''''''''''''''
cond
*.nrg 20000 >
start
20 .repro store
stop
end
-
You might want to add this condition to the first gene:
*.velscalar 0 =
or maybe a timer gene
...
*.timer 100 mod 0 =
start
0 .timer store
...
The way you're doing it right now would cause the bot to spend a great deal of nrg thrusting every cycle, waisting alot of nrg.
-
Hi there,
nice. I just started writing bots myself - you can try to beat my first creation if you want to (find the code attached to this post). I left it to its own devices for a while and it mutated into a worm or something, not really sure what happened, lol.
At the moment it wins every run against Artemis, but if you add a gene to search larger areas for food they should at least be evenly matched, I think.
-
Thanks Numsgil, though I changed it to:
*.velscalar 15 <
...because at 0 = the bots almost never move because brownian motion or gravity or whatever it is that makes them 'float' when the friction isn't set to sandpaper, keeps their velocity just a little above zero.
'Artemis Minimalis
'Has basic but efficient hunting instincts.
'Will not kill its own young.
cond
*.eye5 0 =
*.velscalar 15 <
start
314 rnd .aimdx store
60 .dn store
stop
cond
*.refeye *.myeye =
500 *.robage > and
start
314 rnd .aimdx store
stop
cond
*.eye3 *.eye5 >
*.eye3 *.eye7 <
start
-25 .aimdx store
stop
cond
*.eye7 *.eye5 >
*.eye7 *.eye3 >
start
25 .aimdx store
stop
cond
*.eye5 0 >
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop
cond
*.eye5 50 >
start
-1 .shoot store
*.refvelup .up store
stop
' Gene 4 Reproduce
cond
*.nrg 20000 >
start
20 .repro store
stop
end
Yes, A. Minimalis is very basic indeed, I plan on adding a bunch more genes for finding food. I like to just thrown 'em in with some T. Preservans and watch.
-
I like the bot without the condition
*.velscalar 15 <
better, it is more inpredicteble, fooling some opponent bots" including themself in a F1 fight. Becouse of strange circles it is making, an opponent spotting it, misses it becouse of it.
This gene is too taking care the young get away from the mother, I gues becouse this bots shoots it's young that's a little mistake, or was this on purpose .
I would add some conspec recognition at the food gene, adding a condition of
*.refeye *.myeye =
At this one
cond
*.eye5 50 >
start
-1 .shoot store
*.refvelup .up store
stop
Instead of shooting everything, it shoots everything exept his own specie, just a little smarter.
-
'Will not kill its own young.
It's supposed to do that. If it spots something that's it's own species AND is under 500 cycles old, it leaves it alone.
But once they're adults they're fair game.
-
'Will not kill its own young.
It's supposed to do that. If it spots something that's it's own species AND is under 500 cycles old, it leaves it alone.
But once they're adults they're fair game.
If that was the purpose I gues you made a mistake.
A few genes, I just noticed, that you wanted to put a protection on young young, could be becouse the second didn't had any text.
'''''''''''''''''''''''''''''''''''''
'Don't eat young conspecifics
'''''''''''''''''''''''''''''''''''''
cond
*.refeye *.myeye =
500 *.robage > and
start
314 rnd .aimdx store
stop
The thing this gene does is turning if it sees something older and another specie.
'''''''''''''''''''''''''''''''''''''
'Open fire
'''''''''''''''''''''''''''''''''''''
cond
*.eye5 50 >
start
-1 .shoot store
*.refvelup .up store
stop
Here it opens fire on everything it sees,(including their youngs)
I would change the conspec rec. from the first to the second.
Sometimes it just kills young becouse of this, instead of the opposide.
-
'Will not kill its own young.
Where did you get the quote from, I can't seem to find it back in my post, strange ,
am I getting old .
To the admin or moderators or anybody else who thinks he(or she)knows this.
Is there a reason or something there is a bottavern and a beastery, I mean two places to post bots or was there something of a rule, who are now breaking , that you should not post here or anything.
Hmmm,is there a reason, shall I read the rules.
Nah
-
There seems to be something of a rule, maybe a little outdated, butt awell.
I can't get the bloody moderation to work properly in the Bestiary so I have opened it up for anyone to post their robot dna files there.
No replies are permitted though. Each robot will be in a new thread.
PY
Edit :here is the link by the way from Feb 23 2005, 10:16 PM
THE LINK (http://www.darwinbots.com/Forum/index.php?showtopic=26#)
/edit
I am breaking the rules,
I am breaking the rules,
I am breaking the rules,
I am breaking the rules,
Now what's gonna happen,
Oh, and triplepost, I just noticed.
-
PY was the one who wanted the bestiary to be *only* robots. I noticed that there wasn't a place to actually discuss the bots, so I suggested the bot tavern. After PY left, I sort of realized that discussing the bots in the actual post the bots are in makes more sense, so we've been letting the "rule" slide.
-
Hiya y'all
Further to Num's post; the bestiary is a sort of record of the bots, a bot posted there is generally a finished product but open to comment, the bot tavern is more a work in progress thingy.
Like Num's said, the rules aren't set in stone though, we're into evolution here!
-
Where should this go? Moving to untagged.