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 - Commander Keen

Pages: 1 [2] 3 4 ... 7
16
Off Topic / Spam of late
« on: October 03, 2008, 12:25:57 AM »
 

cond
*.mkspam 0 !=
start
*.mkspam .delspam store
stop

 

Looks like a bot got lucky on the forum captcha. Hopefully there won't be any more... Damn the Spam!  

17
Off Topic / so... we meet again
« on: October 03, 2008, 12:15:23 AM »
I want to keep it F2-legal, since F2 doesn't have the really nasty bots like Pacifist, Etch and Fruitflies....
Also viruses aren't exactly the fastest and most reliable way, since you can't aim viruses and it takes time and energy to spread them.

18
F2 bots / Astronomo2 (F2)(Commander Keen)3-10-08
« on: October 02, 2008, 11:19:46 PM »
I knew I should have tested the new version against everything  

Managed to fix it, although I didn't improve the aiming logic. Probably should, but for now the new version (hopefully) works well enough.

19
F2 bots / Astronomo_2.1 (F2)(Commander Keen)3-10-08
« on: October 02, 2008, 11:16:53 PM »
Hopefully this time around it will manage it...
It can now beat This'n'That again, but it takes longer to kill off Spinner.
Code: [Select]
' ASTRONOMO
' F2
' Commander Keen
' 3rd October 2008
' Version 2.1
' Changes:
' Swapped Venom and Info shot around...

def badarea 51
def enemy 55
def stage 56

cond
*.robage 0 =
start
140 .eye6width store
280 .eye7width store
280 .eye8width store
280 .eye9width store
-68 .eye1dir store
-68 .eye2dir store
-68 .eye3dir store
-68 .eye4dir store
-68 .eye5dir store
-140 .eye6dir store
317 .eye7dir store
634 .eye8dir store
970 .eye9dir store
-2 .focuseye store
.shoot .ploc store
.tie inc
.shootval .vloc store
31999 .venval store
1991 .out5 store
32000 rnd .out4 store
128 .badarea store
stop

cond
1 1 =
start
50 *.venom sub 0 floor .strvenom store
50 *.poison sub 0 floor .strpoison store
50 *.slime sub 0 floor 10 ceil .mkslime store
50 *.shell sub 0 floor .mkshell store
*.nrg *.body 10 mult add 20 div *.body sub 1 floor .strbody store
*.body *.nrg *.body 10 mult add 20 div sub 0 floor 30000 *.nrg sub 10 div ceil  .fdbody store
*.tiepres .deltie store
*.refshoot *.myshoot sub *.refaimdx *.myaimdx sub *.refaimsx *.myaimsx sub *.refeye *.myeye sub *.refup *.myup sub *.refdn *.mydn sub *.refsx *.mysx sub *.refdx *.mydx sub abs add abs add abs add abs add abs add abs add abs add abs .enemy store
*.tiepres .readtie store
.tieval .tmemloc store
32000 .tmemval store
*.enemy 1 =
0 .enemy store
clearbool
*.enemy *.out5 *.in5 sub abs add .enemy store
1 *.out4 *.in4 sub abs sgn sub *.enemy add .enemy store
stop

cond
*.eye1 *.eye2 *.eye3 *.eye4 *.eye5 *.eye6 *.eye7 *.eye8 *.eye9 add add add add add add add add 0 =
*.enemy 0 = or
*.badarea 16 >=
start
1 *.timer 8 mod sgn sub 10 mult .up store
1 *.timer 2 add 8 mod sgn sub 10 mult .dx store
1 *.timer 4 add 8 mod sgn sub 10 mult .dn store
1 *.timer 6 add 8 mod sgn sub 10 mult .sx store
stop

cond
*.eye1 *.eye2 *.eye3 *.eye4 *.eye5 add add add add 0 =
*.enemy 0 = or
start
157 .aimdx store
.badarea inc
stop

cond
*.eye3 0 =
*.eye4 0 !=
start
34 .aimdx store
stop
cond
*.eye3 0 =
*.eye2 0 !=
start
-34 .aimdx store
stop
cond
*.eye3 0 =
*.eye5 0 !=
start
68 .aimdx store
stop
cond
*.eye3 0 =
*.eye1 0 !=
start
-68 .aimdx store
stop

cond
*.eyef 0 !=
*.enemy 0 !=
start
*.velsx .dx store
128 *.eyef sub *.velup sub *.veldn 2 div floor *.refvelup add .up store
*.refxpos *.refypos angle .setaim store
0 .badarea store
clearbool
*.stage 0 =
-2 .shootval store
.shoot .shoot store
clearbool
*.stage 1 =
*.refxpos *.refypos angle 628 add 1256 mod .shootval store
.setaim .shoot store
clearbool
*.stage 2 =
-3 .shoot store
*.venom .shootval store
clearbool
1 1 =
*.stage 1 add 3 mod .stage store
clearbool
stop

cond
*.nrg *.body 10 mult add 2500 >
start
50 .repro store
stop

cond
*.badarea 32 >=
start
*.timer 4 add 8 mod 0 =
*.maxvel *.veldn sub .dn store
*.timer 8 mod 0 =
0 *.maxvel *.velup sub sub .dn store
clearbool
stop

20
Off Topic / so... we meet again
« on: October 02, 2008, 08:44:19 PM »
I've implemeted a similar method to what Moonfisher suggested in Astronomo v2. It feeds of veggies by causing them to suicide all their energy in one giant shot which is (hopefully) directed at my bot. Sadly it doesn't work extremely well, and the veggie's body is wasted entirely, but the code causes havoc with other bots trying to feed off veggies, and it looks pretty silly too. And it leaves enough room for improvement in version 2.1...

21
F2 bots / Spinner v1.52 (F2) (Moonfisher) 02-10-08
« on: October 02, 2008, 08:39:07 PM »
Astronomo v2 is out...

It can beat Spinner 1.52, and I tested itself against the previous version as well just to make sure it is an improvement, especially since it fires no -1/-6 shots at all!
Yes, you heard me right. It doesn't shoot -1/-6 shots at all.  
I'm still not sure I got all the bugs out of the feeding off veggies code, but it seems to kill everything fast enough...

22
F2 bots / Astronomo2 (F2)(Commander Keen)3-10-08
« on: October 02, 2008, 08:35:35 PM »
Code: [Select]
' ASTRONOMO
' F2
' Commander Keen
' 3rd October 2008
' Version 2
' Changes:
' Improved Kill method
' No longer fires -1/-6 shots
' Should do much better against tie-feeders in F1.

def badarea 51
def enemy 55
def stage 56

cond
*.robage 0 =
start
140 .eye6width store
280 .eye7width store
280 .eye8width store
280 .eye9width store
-68 .eye1dir store
-68 .eye2dir store
-68 .eye3dir store
-68 .eye4dir store
-68 .eye5dir store
-140 .eye6dir store
317 .eye7dir store
634 .eye8dir store
970 .eye9dir store
-2 .focuseye store
.shoot .ploc store
.tie inc
.shoot .vloc store
-2 .venval store
1991 .out5 store
32000 rnd .out4 store
128 .badarea store
stop

cond
1 1 =
start
50 *.venom sub 0 floor .strvenom store
50 *.poison sub 0 floor .strpoison store
50 *.slime sub 0 floor 10 ceil .mkslime store
50 *.shell sub 0 floor .mkshell store
*.nrg *.body 10 mult add 20 div *.body sub 1 floor .strbody store
*.body *.nrg *.body 10 mult add 20 div sub 0 floor 30000 *.nrg sub 10 div ceil  .fdbody store
*.tiepres .deltie store
*.refshoot *.myshoot sub *.refaimdx *.myaimdx sub *.refaimsx *.myaimsx sub *.refeye *.myeye sub *.refup *.myup sub *.refdn *.mydn sub *.refsx *.mysx sub *.refdx *.mydx sub abs add abs add abs add abs add abs add abs add abs add abs .enemy store
*.tiepres .readtie store
.tieval .tmemloc store
32000 .tmemval store
*.enemy 1 =
0 .enemy store
clearbool
*.enemy *.out5 *.in5 sub abs add .enemy store
1 *.out4 *.in4 sub abs sgn sub *.enemy add .enemy store
stop

cond
*.eye1 *.eye2 *.eye3 *.eye4 *.eye5 *.eye6 *.eye7 *.eye8 *.eye9 add add add add add add add add 0 =
*.enemy 0 = or
*.badarea 16 >=
start
1 *.timer 8 mod sgn sub 10 mult .up store
1 *.timer 2 add 8 mod sgn sub 10 mult .dx store
1 *.timer 4 add 8 mod sgn sub 10 mult .dn store
1 *.timer 6 add 8 mod sgn sub 10 mult .sx store
stop

cond
*.eye1 *.eye2 *.eye3 *.eye4 *.eye5 add add add add 0 =
*.enemy 0 = or
start
157 .aimdx store
.badarea inc
stop

cond
*.eye3 0 =
*.eye4 0 !=
start
34 .aimdx store
stop
cond
*.eye3 0 =
*.eye2 0 !=
start
-34 .aimdx store
stop
cond
*.eye3 0 =
*.eye5 0 !=
start
68 .aimdx store
stop
cond
*.eye3 0 =
*.eye1 0 !=
start
-68 .aimdx store
stop

cond
*.eyef 0 !=
*.enemy 0 !=
start
*.velsx .dx store
128 *.eyef sub *.velup sub *.veldn 2 div floor *.refvelup add .up store
*.refxpos *.refypos angle .setaim store
0 .badarea store
clearbool
*.stage 0 =
30000 .shootval store
.shootval .shoot store
clearbool
*.stage 1 =
*.refxpos *.refypos angle 628 add 1256 mod .shootval store
.setaim .shoot store
clearbool
*.stage 2 =
-3 .shoot store
*.venom .shootval store
clearbool
1 1 =
*.stage 1 add 3 mod .stage store
clearbool
stop

cond
*.nrg *.body 10 mult add 2500 >
start
50 .repro store
stop

cond
*.badarea 32 >=
start
*.timer 4 add 8 mod 0 =
*.maxvel *.veldn sub .dn store
*.timer 8 mod 0 =
0 *.maxvel *.velup sub sub .dn store
clearbool
stop

23
F2 bots / Tribolisv0.3(F2MB)(Bacillus)-2/10/08
« on: October 02, 2008, 08:32:49 PM »
Still eligible, since you are allowed to delete your own genes in F2, and you aren't making a virus yourself...

24
F2 bots / Spinner v1.52 (F2) (Moonfisher) 02-10-08
« on: October 02, 2008, 07:27:35 PM »
It's called Evolution

25
Off Topic / so... we meet again
« on: October 02, 2008, 07:22:48 PM »
Quote from: Moonfisher
Also I'm not sure about this, but I think you found a way to eat alge realy fast with a small bot, without using tie feeding.... I haven't applyed it in spinned, I kind of think you should be the one the fully exploit it first, and your bots strategy is better suited for it... either way it seems that a poisoned alge will also boost energy shots that are caused by getting hit. So basicaly if you infect an alge with 32000 .shootval and then shoot at it regularly it should hand over all it's energy the first time you hit it... I think...  haven't tryed it.
You could also just tie to the alge and boost shootval in that way... either way if it works it should make a big difference.

Yeah, I've been working on something kinda like that. I made a bot that uses an info shot to boost shootval, then another info shot to turn the veggie to face it and then some venom to make it fire nrg at it. It was very sucessful, even though half the time the nrg didn't hit my bot. Might be one of the ways I can go to beat Spinner 1.52. Then again, you'll just make 1.53...  

It's far too easy to get sidetracked. Astronomo was going to be F1 with tiefeeding, but I'm not very good at doing stuff with ties, so I ended up using venom instead.

26
F2 bots / Tribolisv0.3(F2MB)(Bacillus)-2/10/08
« on: October 02, 2008, 04:20:13 AM »
Great, I'll run it now

27
F2 bots / Astronomo (F2)(Commander Keen) 2-10-08
« on: October 02, 2008, 04:17:54 AM »
Yeah, it in some cases helped the enmy bot to win, and less variety seems to work ok. I'm thinking that one with more venom varieties could work in IM, but for F2 consistency counts.

28
Off Topic / so... we meet again
« on: October 02, 2008, 03:29:23 AM »
Updated my bot, now has a 85%+ win percentage. And I renamed it since the kill method is rather different, so it's no longer called Republican Bee 2.

The big difference which really helped it beat spinner was the line "128 .badarea store". Beforehand it just wasn't spreading fast enough to infect all the spinners.


Astronomo (F2)(Commander Keen) 2-10-08
[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']'Astronomo, by Commander Keen
' First Edition 2nd October 2008

def badarea 51
def enemy 55

cond
*.robage 0 =
start
140 .eye6width store
280 .eye7width store
280 .eye8width store
280 .eye9width store
-68 .eye1dir store
-68 .eye2dir store
-68 .eye3dir store
-68 .eye4dir store
-68 .eye5dir store
-140 .eye6dir store
317 .eye7dir store
634 .eye8dir store
970 .eye9dir store
-2 .focuseye store
.shoot .ploc store
.tie inc
.shootval .vloc store
-31999 .venval store
1991 .out5 store
32000 rnd .out4 store
128 .badarea store
stop

cond
1 1 =
start
50 *.venom sub 0 floor .strvenom store
50 *.poison sub 0 floor .strpoison store
50 *.slime sub 0 floor 10 ceil .mkslime store
50 *.shell sub 0 floor .mkshell store
*.nrg *.body 10 mult add 20 div *.body sub 1 floor .strbody store
*.body *.nrg *.body 10 mult add 20 div sub 0 floor 30000 *.nrg sub 10 div ceil  .fdbody store
*.tiepres .deltie store
*.refshoot *.myshoot sub *.refaimdx *.myaimdx sub *.refaimsx *.myaimsx sub *.refeye *.myeye sub *.refup *.myup sub *.refdn *.mydn sub *.refsx *.mysx sub *.refdx *.mydx sub abs add abs add abs add abs add abs add abs add abs add abs .enemy store
*.tiepres .readtie store
.tieval .tmemloc store
32000 .tmemval store
*.enemy 1 =
0 .enemy store
clearbool
*.enemy *.out5 *.in5 sub abs add .enemy store
1 *.out4 *.in4 sub abs sgn sub *.enemy add .enemy store
stop

cond
*.eye1 *.eye2 *.eye3 *.eye4 *.eye5 *.eye6 *.eye7 *.eye8 *.eye9 add add add add add add add add 0 =
*.enemy 0 = or
*.badarea 16 >=
start
1 *.timer 8 mod sgn sub 10 mult .up store
1 *.timer 2 add 8 mod sgn sub 10 mult .dx store
1 *.timer 4 add 8 mod sgn sub 10 mult .dn store
1 *.timer 6 add 8 mod sgn sub 10 mult .sx store
stop

cond
*.eye1 *.eye2 *.eye3 *.eye4 *.eye5 add add add add 0 =
*.enemy 0 = or
start
157 .aimdx store
.badarea inc
stop

cond
*.eye3 0 =
*.eye4 0 !=
start
34 .aimdx store
stop
cond
*.eye3 0 =
*.eye2 0 !=
start
-34 .aimdx store
stop
cond
*.eye3 0 =
*.eye5 0 !=
start
68 .aimdx store
stop
cond
*.eye3 0 =
*.eye1 0 !=
start
-68 .aimdx store
stop

cond
*.eyef 0 !=
*.enemy 0 !=
start
'1 *.refshell sgn sub -5 mult 1 sub .shoot store
-6 5 *.refshell sgn mult add *.refshell *.refpoison mult sgn 5 mult sub .shoot store
16 .shootval store
*.velsx .dx store
128 *.eyef sub *.velup sub *.veldn 2 div floor *.refvelup add .up store
*.refxpos *.refypos angle .setaim store
0 .badarea store
clearbool
*.refshoot 0 !=
-3 .shoot store
*.venom .shootval store
clearbool
stop

cond
*.nrg *.body 10 mult add 2500 >
start
50 .repro store
stop

cond
*.badarea 32 >=
start
*.timer 4 add 8 mod 0 =
*.maxvel *.veldn sub .dn store
*.timer 8 mod 0 =
0 *.maxvel *.velup sub sub .dn store
clearbool
stop

29
F2 bots / Astronomo (F2)(Commander Keen) 2-10-08
« on: October 02, 2008, 03:28:06 AM »
Manages 1st place in F2, and should get a decent ranking in F1 considering it can defeat all the F2 bots with relative ease (except for Bubbles  )
I'm waiting for Spinner v1.6

And yes, it shares some of it's code with Republican Bee, but it is quite different in operation. I was going to call it Republican Bee v2, but it wins in a rather different way.
It doesn't feed off opponents, instead pumping them full of venom, resulting in a very rapid death.

Code: [Select]
'Astronomo, by Commander Keen
' First Edition 2nd October 2008

def badarea 51
def enemy 55

cond
*.robage 0 =
start
140 .eye6width store
280 .eye7width store
280 .eye8width store
280 .eye9width store
-68 .eye1dir store
-68 .eye2dir store
-68 .eye3dir store
-68 .eye4dir store
-68 .eye5dir store
-140 .eye6dir store
317 .eye7dir store
634 .eye8dir store
970 .eye9dir store
-2 .focuseye store
.shoot .ploc store
.tie inc
.shootval .vloc store
-31999 .venval store
1991 .out5 store
32000 rnd .out4 store
128 .badarea store
stop

cond
1 1 =
start
50 *.venom sub 0 floor .strvenom store
50 *.poison sub 0 floor .strpoison store
50 *.slime sub 0 floor 10 ceil .mkslime store
50 *.shell sub 0 floor .mkshell store
*.nrg *.body 10 mult add 20 div *.body sub 1 floor .strbody store
*.body *.nrg *.body 10 mult add 20 div sub 0 floor 30000 *.nrg sub 10 div ceil  .fdbody store
*.tiepres .deltie store
*.refshoot *.myshoot sub *.refaimdx *.myaimdx sub *.refaimsx *.myaimsx sub *.refeye *.myeye sub *.refup *.myup sub *.refdn *.mydn sub *.refsx *.mysx sub *.refdx *.mydx sub abs add abs add abs add abs add abs add abs add abs add abs .enemy store
*.tiepres .readtie store
.tieval .tmemloc store
32000 .tmemval store
*.enemy 1 =
0 .enemy store
clearbool
*.enemy *.out5 *.in5 sub abs add .enemy store
1 *.out4 *.in4 sub abs sgn sub *.enemy add .enemy store
stop

cond
*.eye1 *.eye2 *.eye3 *.eye4 *.eye5 *.eye6 *.eye7 *.eye8 *.eye9 add add add add add add add add 0 =
*.enemy 0 = or
*.badarea 16 >=
start
1 *.timer 8 mod sgn sub 10 mult .up store
1 *.timer 2 add 8 mod sgn sub 10 mult .dx store
1 *.timer 4 add 8 mod sgn sub 10 mult .dn store
1 *.timer 6 add 8 mod sgn sub 10 mult .sx store
stop

cond
*.eye1 *.eye2 *.eye3 *.eye4 *.eye5 add add add add 0 =
*.enemy 0 = or
start
157 .aimdx store
.badarea inc
stop

cond
*.eye3 0 =
*.eye4 0 !=
start
34 .aimdx store
stop
cond
*.eye3 0 =
*.eye2 0 !=
start
-34 .aimdx store
stop
cond
*.eye3 0 =
*.eye5 0 !=
start
68 .aimdx store
stop
cond
*.eye3 0 =
*.eye1 0 !=
start
-68 .aimdx store
stop

cond
*.eyef 0 !=
*.enemy 0 !=
start
'1 *.refshell sgn sub -5 mult 1 sub .shoot store
-6 5 *.refshell sgn mult add *.refshell *.refpoison mult sgn 5 mult sub .shoot store
16 .shootval store
*.velsx .dx store
128 *.eyef sub *.velup sub *.veldn 2 div floor *.refvelup add .up store
*.refxpos *.refypos angle .setaim store
0 .badarea store
clearbool
*.refshoot 0 !=
-3 .shoot store
*.venom .shootval store
clearbool
stop

cond
*.nrg *.body 10 mult add 2500 >
start
50 .repro store
stop

cond
*.badarea 32 >=
start
*.timer 4 add 8 mod 0 =
*.maxvel *.veldn sub .dn store
*.timer 8 mod 0 =
0 *.maxvel *.velup sub sub .dn store
clearbool
stop

30
Off Topic / so... we meet again
« on: October 02, 2008, 12:59:45 AM »
Republican Bee... Mwahahahahahahaaaaa...

Watch out for Republican Bee v2, a few more tweaks and hopefully I'll up the win rate above 33%. Instakill Venom works quite nicely, but I'm thinking I should go with something adaptive, since Excaliburs adaptive armour and Fruitfly's pseudo-evolution work so well. I'd post up the current version, but then you'd make Spinner 1.6  

It all comes down to shell and poison in F2. Instakill stuff is important for when you get into the top 5, but apart from that, a good idea and some clever engineering can go a long way. I'm still surprised how well some bots are doing. My personal favourites are ones that do something interesting. Spiral is awesome, and so is Fishy. Nevermind that neither are in the top 10, they are both unique, and worth remembering

Pages: 1 [2] 3 4 ... 7