Author Topic: Ratticus Rex (F2)(Jez)-27.02.07  (Read 2890 times)

Offline Jez

  • Bot Overlord
  • ****
  • Posts: 788
    • View Profile
Ratticus Rex (F2)(Jez)-27.02.07
« on: February 27, 2007, 11:59:41 AM »
Code: [Select]
'The non spinning bot with a very big bite!

'unnofficially came first in F1 and F2
'losing a max of one round in any match

'simply written and not bug fixed, this bot shouldn't be much of a
'challenge for the rest of you to beat...

cond
*.robage 0 =
start
1 .tie store
stop

cond
*.eye5width 1221 !=
start
1221 .eye5width store
stop

'target and move
cond
*.memval *.genes !=
*.eye5 0 >
start
*.refxpos *.refypos angle .setaim store
*.refxpos *.refypos dist 500 div *.maxvel mult *.refvel add 0 floor
*.maxvel ceil .up store
*.veldx .sx store
-6 .shoot store
*.body 100 div .shootval store
stop

'repro
cond
*.paralyzed 0 =
*.poisoned 0 = or
*.pwaste 10000 > or
start
100 .repro store
stop

cond
*.nrg 30000 >=
start
50 .repro store
stop

'avoid friends
cond
*.memval *.genes =
start
5 .up store
*.refxpos *.refypos angle 628 add .setaim store
stop

cond
*.numties 0 >
start
*.tiepres .deltie store
stop

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

cond
*.nrg 2000 >
*.body 10000 <
start
100 .strbody store
stop

cond
*.nrg 200 <
start
100 .fdbody store
stop

'memloc check
cond
.genes .memloc !=
start
.genes .memloc store
*.thisgene 1 add .delgene store
stop
« Last Edit: May 09, 2014, 11:40:51 AM by Botsareus »
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 Light

  • Bot Destroyer
  • ***
  • Posts: 245
    • View Profile
Ratticus Rex (F2)(Jez)-27.02.07
« Reply #1 on: February 27, 2007, 07:48:48 PM »
Try it against this  

Offline Jez

  • Bot Overlord
  • ****
  • Posts: 788
    • View Profile
Ratticus Rex (F2)(Jez)-27.02.07
« Reply #2 on: February 27, 2007, 08:34:50 PM »
An updated Excalibur, cool! I ran Ratticus through the league again after posting and Excalibur put up a really good fight. One of the only (and best (won 4)) bot opponents I have noticed yet.

About to try it out, I look forward to the challenge.  

EDIT
Owned!! /me heads off to do H/W!
« Last Edit: February 27, 2007, 08:39:21 PM by Jez »
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 Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7722
    • View Profile
Ratticus Rex (F2)(Jez)-27.02.07
« Reply #3 on: February 28, 2007, 01:07:47 AM »
This is a neat bot!  Primarily because I can understand what it's doing

I believe that PWaste gets divided between parent and child the same as body, though I may have just done this in the C++ version.  Either way, it's worth a look to see if that strategy works.

Offline Jez

  • Bot Overlord
  • ****
  • Posts: 788
    • View Profile
Ratticus Rex (F2)(Jez)-27.02.07
« Reply #4 on: February 28, 2007, 06:50:36 AM »
Interesting, I think it's worth saying that this gene doesn't seem to work atm though, not sure why, maybe can't do 100 .repro anymore. (The *.paralyzed 0 = cond is a pointer to it failing!)
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 Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7722
    • View Profile
Ratticus Rex (F2)(Jez)-27.02.07
« Reply #5 on: February 28, 2007, 06:59:13 AM »
I think the program clamps the values it receives for reproing to the [1, 99] range.

Offline Jez

  • Bot Overlord
  • ****
  • Posts: 788
    • View Profile
Ratticus Rex (F2)(Jez)-27.02.07
« Reply #6 on: February 28, 2007, 07:30:22 AM »
Fixing that gene seemed to make it more efficient, (!= and repro 99) why that should make any difference in a Rat V Rat contest is not clear atm. (Unless that Pwaste bit is actually useful). If the prog did clamp the value then the gene as it stood should have made Rat useless! (Repro-ing all the time I.e.)

Light, I was wondering why you hadn't entered that bot in the league, I notice that you use aimsx as ID though and Blue will con your bot if you use that. Would imagine if you used a memloc ID or summat Blue proof you could easily reach the top of F2 at the very least!    

It would be easy for me to grab a few genes from Blue atm to beat your bot...
« Last Edit: February 28, 2007, 07:32:32 AM by Jez »
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 Light

  • Bot Destroyer
  • ***
  • Posts: 245
    • View Profile
Ratticus Rex (F2)(Jez)-27.02.07
« Reply #7 on: March 02, 2007, 08:55:00 PM »
Blue on Blue was built after the last version of Excalibur. Before Blue, ID fooling was never very advanced so there was never any need for sophisticated ID checking, I guess you rased the bar in that respects. When im free I'll look at changing the ID to something harder to fool.
« Last Edit: March 02, 2007, 09:27:15 PM by Light »

Offline Jez

  • Bot Overlord
  • ****
  • Posts: 788
    • View Profile
Ratticus Rex (F2)(Jez)-27.02.07
« Reply #8 on: March 03, 2007, 05:39:38 AM »
Aaah, ok.

Your latest Excalibur is proving a tough nut to crack without such trivial methods, shattering my hypothesis that the eye5width gene heralded a new generation of tougher bots! Very well written btw, I am hoping atm that the 'adaptive armour' is the underlying strength.

FYI all it took for Rat to beat the F1 crowd after winning the F2 league was the last gene, the antiviral bit. (plus ofc the anti tie bit)
Being British I support the (F2) underdogs and hope you manage to come up with a new F2/F1 winner soon!
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 Light

  • Bot Destroyer
  • ***
  • Posts: 245
    • View Profile
Ratticus Rex (F2)(Jez)-27.02.07
« Reply #9 on: March 07, 2007, 08:58:52 AM »
Excalibur 1.11 has mutated into 1.12 with a shiny brand spanking new patented 'anti Blue id system' get it here  
« Last Edit: March 07, 2007, 08:59:32 AM by Light »