Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ashton15

Pages: 1 ... 5 6 [7]
91
Quote from: fulizer
fine  
Aww . . . maybhe you could sense drag with something along the lines of

[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']def drag 50

cond
 *.robage 0 =
start
 .tie inc
 0 .drag store
stop

cond
 *.robage 1 >
 *.robage 22 <
start
 .deltie inc
 *.maxvel .up store
 *.nrg .drag store
stop

cond
 *.robage 21 =
start
*.drag *.nrg sub .drag store
*.drag *.maxvel div .drag store
stop

cond
'conditions for moving forwards
start
*.drag .up store
stop

92
Off Topic / Go back in time...
« on: March 13, 2010, 05:26:02 PM »
Wow, that's cool... shame it doesn't go back to 1993 when the internet was invented though... would have been nice to see amazon and woolworths... major brands in thier infancy... at least on the internet anyway

93
Biology / 300,000 birds
« on: March 13, 2010, 05:03:49 PM »
And that's where cats come handy...   Just not so handy when they kill all the cute little froggy woggies and robins and stuff...

94
Newbie / Introduction to me
« on: March 13, 2010, 04:43:11 PM »
happy birthday to you
you were born in the zoo
with the chimps and the monkeys
and you smell like one too

   

95
Newbie / Hey
« on: March 13, 2010, 03:59:42 PM »
Quote from: bacillus
Hi!
The F1 league is a very lofty goal-I'd aim for F3 first. This gets you a good base bot to work on, as you can't use tricks, so the system behind the bot has to be very robust. Next, try getting your defenses sorted out in F2, then you can go for F1 with some dramatic trick  
I might try that... sounds like a good idea  

Quote from: bacillus
EDIT=> I see the first bit of your code is very similar to Commander Keen's Oculus Infinitus-you could have a look at OCULUS and OCULUS II in the gene depository-it's a store command that sets the focus eye to the closest target, then uses *.eyef to read it as if it were, for example, *.eye5 . You can then read data from off-side (it's now the focus eye, so can be read as though it were eye5) to decide whether to turn towards that bot or not by using *.refxpos *.refypos angle .setaim store. This prevens your bots from turning into conspecs.

Thanks for the refrence... I think you overestimate my abilities however , I'm not entirely sure what the majority of the code means . But thanks anyway.   Most of the eyesight genes is just code that i re-arranged from bubbles [/font]

96
Newbie / Hey
« on: March 13, 2010, 01:16:54 PM »
Hey all  , I'm new and that's about all I have to say apart from here's my first bot:

[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']'*************
'Aiming
'*************

'Turn to robot located in eye 4
cond
 *.eye5 0 =
 *.eye4 0 !=
 *.eye4 *.eye1 >=
 *.eye4 *.eye2 >=
 *.eye4 *.eye3 >=
 *.eye4 *.eye6 >=
 *.eye4 *.eye7 >=
 *.eye4 *.eye8 >=
 *.eye4 *.eye9 >=
start
 *.aim 35 add .setaim store
stop

'Turn to robot located in eye 6
cond
 *.eye5 0 =
 *.eye6 0 !=
 *.eye6 *.eye1 >
 *.eye6 *.eye2 >=
 *.eye6 *.eye3 >=
 *.eye6 *.eye4 >=
 *.eye6 *.eye7 >=
 *.eye6 *.eye8 >=
 *.eye6 *.eye9 >=
start
 *.aim -35 add .setaim store
stop

'Turn to robot located in eye 3
cond
 *.eye5 0 =
 *.eye3 0 !=
 *.eye3 *.eye1 >
 *.eye3 *.eye2 >
 *.eye3 *.eye4 >=
 *.eye3 *.eye6 >=
 *.eye3 *.eye7 >=
 *.eye3 *.eye8 >=
 *.eye3 *.eye9 >=
start
 *.aim 70 add .setaim store
stop

'Turn to robot located in eye 7
cond
 *.eye5 0 =
 *.eye7 0 !=
 *.eye7 *.eye1 >
 *.eye7 *.eye2 >
 *.eye7 *.eye3 >
 *.eye7 *.eye4 >=
 *.eye7 *.eye6 >=
 *.eye7 *.eye8 >=
 *.eye7 *.eye9 >=
start
 *.aim -70 add .setaim store
stop

'Turn to robot located in eye 2
cond
 *.eye5 0 =
 *.eye2 0 !=
 *.eye2 *.eye1 >
 *.eye2 *.eye3 >
 *.eye2 *.eye4 >
 *.eye2 *.eye6 >
 *.eye2 *.eye7 >=
 *.eye2 *.eye8 >=
 *.eye2 *.eye9 >=
start
 *.aim 105 add .setaim store
stop

'Turn to robot located in eye 8
cond
 *.eye5 0 =
 *.eye8 0 !=
 *.eye8 *.eye1 >
 *.eye8 *.eye2 >
 *.eye8 *.eye3 >
 *.eye8 *.eye4 >
 *.eye8 *.eye6 >
 *.eye8 *.eye7 >=
 *.eye8 *.eye9 >=
start
*.aim -105 add .setaim store
stop

'Turn to robot located in eye 1
cond
 *.eye5 0 =
 *.eye1 0 !=
 *.eye1 *.eye2 >
 *.eye1 *.eye3 >
 *.eye1 *.eye4 >
 *.eye1 *.eye6 >
 *.eye1 *.eye7 >
 *.eye1 *.eye8 >
 *.eye1 *.eye9 >=
start
 *.aim 140 add .setaim store
stop

'Turn to robot located in eye 9
cond
 *.eye5 0 =
 *.eye9 0 !=
 *.eye9 *.eye1 >
 *.eye9 *.eye2 >
 *.eye9 *.eye3 >
 *.eye9 *.eye4 >
 *.eye9 *.eye6 >
 *.eye9 *.eye7 >
 *.eye9 *.eye8 >
start
 *.aim -140 add .setaim store
stop

'Look arround if I can't see anything and I'm not being shot
cond
*.eye1 0 =
*.eye2 0 =
*.eye3 0 =
*.eye4 0 =
*.eye5 0 =
*.eye6 0 =
*.eye7 0 =
*.eye8 0 =
*.eye9 0 =
*.shflav 0 =
*.shflav -2 = or
start
*.aim 280 add .setaim store
stop

'When shot turn to attacker
cond
 *.shflav 0 !=
 *.shflav -2 !=
start
 1256 *.shang sub .setaim store
stop

'Approach anything you can see
cond
 *.eye5 0 !=
start
 *.refveldx .dx store
 *.refvelup 30 add .up store
stop

'*************
'Ties
'*************

'If something has more energy than me connect to it
cond
 *.refnrg *.nrg >
 *.refshoot 0 =
 *.refeye *.myeye !=
 *.eye5 60 >
start
 .tie inc
 *.robage 10 mod 0 =
 628 .aimdx store
 *.refvelup .up store
stop

'If I see another animeep that is close to me connect to it
cond
 *.eye5 60 >
 *.refeye *.myeye =
 *.timer 50 >
start
 *.refvelup .up store
 628 .aimdx store
 .tie inc
 *.refvelup .up store
stop

'Share energy equaly between things I'm connected to
cond
 *.numties 0 >
start
 50 .sharenrg *.multi mult store
 50 .sharewaste *.multi mult store
stop

'If I'm pulling strongly but not moving in the direction I want disconnect
cond
 *.eye5 30 <
 *.eye5 0 !=
 *.up 25 >
 *.velup 15 <
 *.numties 0 >
start
 .deltie inc
 .timer 0 store
stop

'If I'm connected to something that might attack me disconnect from it
cond
 *.trefshoot 0 !=
 *.trefeye *.myeye !=
start
 .deltie inc
stop

'If in pain, disconnect
cond
 *.pain 200 >
start
 .deltie inc
 .timer 0 store
stop


'*************
'Shooting
'*************

'If something has less energy than me, shoot it.
cond
 *.eye5 60 >
 *.refnrg *.nrg <
 *.refeye *.myeye !=
start
 .shoot dec
 *.refvelup .up store
stop

'If something might attack me shoot it
cond
 *.eye5 60 >
 *.refshoot 0 !=
 *.refeye *.myeye !=
start
 .shoot dec
 *.refvelup .up store
stop

'*************
'Reproduction
'*************

'Reproduce when connected to food and the meep is healthy
cond
 *.numties 0 >
 *.nrg 2500 >
 *.body 500 >
 *.pleas 50 >
start
 20 .repro store
stop

'*************
'Mantinence
'*************

'Shoot out waste
cond
*.waste 40 >
start
.backshot inc
-4 .shoot store
*.waste .shootval store
stop

'Grow
cond
 *.nrg 3000 >
start
 100 .strbody store
stop

'build shell
cond
 *.shell 250 <
start
 100 .mkshell store
stop

'define poison
cond
 *.robage 0 =
start
 .shoot .ploc store
stop

'make poison
cond
 *.poison 500 <
start
 50 .strpoison store
stop

'delete viruses
cond
 *.mkvirus 0 !=
start
 *.mkvirus .delgene store
stop
end

So what do you think,  it doesn't rank on the F1 league at all but how would you improve it so it could?    

Pages: 1 ... 5 6 [7]