Author Topic: Artemis Minimalis  (Read 5233 times)

Offline Gaiacarra

  • Bot Neophyte
  • *
  • Posts: 7
    • View Profile
Artemis Minimalis
« on: October 14, 2007, 11:42:20 AM »
My first ever full bot, pretty basic but an ok search pattern.

Code: [Select]
'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

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Artemis Minimalis
« Reply #1 on: October 14, 2007, 01:29:34 PM »
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.
« Last Edit: October 14, 2007, 01:30:33 PM by Numsgil »

Offline harry

  • Bot Neophyte
  • *
  • Posts: 4
    • View Profile
Artemis Minimalis
« Reply #2 on: October 14, 2007, 04:33:08 PM »
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.
« Last Edit: October 14, 2007, 04:39:09 PM by harry »

Offline Gaiacarra

  • Bot Neophyte
  • *
  • Posts: 7
    • View Profile
Artemis Minimalis
« Reply #3 on: October 15, 2007, 02:27:01 AM »
Thanks Numsgil, though I changed it to:

Code: [Select]
*.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.

Code: [Select]
'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.

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Artemis Minimalis
« Reply #4 on: October 15, 2007, 07:48:32 AM »
I like the bot without the condition
Quote
*.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

Quote
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.
Oh my god, who the hell cares.

Offline Gaiacarra

  • Bot Neophyte
  • *
  • Posts: 7
    • View Profile
Artemis Minimalis
« Reply #5 on: October 17, 2007, 01:40:07 PM »
Code: [Select]
'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.
« Last Edit: October 17, 2007, 01:41:09 PM by Gaiacarra »

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Artemis Minimalis
« Reply #6 on: October 17, 2007, 04:55:55 PM »
Quote
'Will not kill its own young.

Quote
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.

Quote
'''''''''''''''''''''''''''''''''''''
'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.

Quote
'''''''''''''''''''''''''''''''''''''
'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.
Oh my god, who the hell cares.

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Artemis Minimalis
« Reply #7 on: October 17, 2007, 05:05:07 PM »
Quote
'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  
Oh my god, who the hell cares.

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Artemis Minimalis
« Reply #8 on: October 17, 2007, 05:13:42 PM »
There seems to be something of a rule,  maybe a little outdated, butt awell.

Quote
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
/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.
« Last Edit: October 17, 2007, 05:16:51 PM by Peter »
Oh my god, who the hell cares.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Artemis Minimalis
« Reply #9 on: October 18, 2007, 12:47:57 AM »
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.

Offline Jez

  • Bot Overlord
  • ****
  • Posts: 788
    • View Profile
Artemis Minimalis
« Reply #10 on: October 18, 2007, 04:36:05 PM »
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!  
If you try and take a cat apart to see how it works, the first thing you have in your hands is a non-working cat.
Douglas Adams

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Moderator
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Artemis Minimalis
« Reply #11 on: May 02, 2014, 02:07:21 PM »
Where should this go? Moving to untagged.