Welcome to GameHourz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Warrior: Skybuck's ProtectorV4FasterNoSelfKill

 
   Game Forums (Home) -> Core War RSS
Next:  pmars.mac missing in pmars sdl version ? How to s..  
Author Message
Skybuck Flying

External


Since: May 25, 2006
Posts: 295



(Msg. 1) Posted: Sun Dec 09, 2007 5:53 pm
Post subject: Warrior: Skybuck's ProtectorV4FasterNoSelfKill
Archived from groups: rec>games>corewar (more info?)

;redcode
;name ProtectorV4FasterNoSelfKill
;author Skybuck Flying
;date 9 december 2007
;version 4FasterNoSelfKill
;strategy Tries to protect itself with 3 bombers left and 3 bombers right
;history version 4FasterNoSelfKill created on 9 december 2007

; I noticed how the warrior performed pretty will during different fights
but ultimately lost because it probably killed itself
; A simple solution would be to replace the jump loop with a conditional
jump, add a reset and rejump, now it should no longer kill itself Wink and
still bomb
; the core completely Smile
; core clear not completely perfect, but it's better than nothing Smile

spl protectleft1
spl protectright1

spl protectleft2
spl protectright2

spl protectleft3
spl protectright3

WarriorBegin

WarriorLength equ WarriorEnd - WarriorBegin
BombingLength equ ((CORESIZE - (WarriorLength + right)) / 3) + 5; because
there are 3 warriors incrementing/decrementing per direction Smile

left dat #-1

protectleft1
mov bomb, <left
protectleft1loop djn protectleft1, #BombingLength
mov.ab #-1, left ; reset bombing position
mov.ab #BombingLength, protectleft1loop ; reset bombing length
jmp protectleft1

protectleft2
mov bomb, <left
protectleft2loop djn protectleft2, #BombingLength
mov.ab #-1, left ; reset bombing position
mov.ab #BombingLength, protectleft2loop ; reset bombing length
jmp protectleft2

protectleft3
mov bomb, <left
protectleft3loop djn protectleft3, #BombingLength
mov.ab #-1, left ; reset bombing position
mov.ab #BombingLength, protectleft3loop ; reset bombing length
jmp protectleft3

bomb dat #0

protectright1
mov bomb, >right
protectright1loop djn protectright1, #BombingLength
mov.ab #1, right ; reset bombing position
mov.ab #BombingLength, protectright1loop ; reset bombing length
jmp protectright1

protectright2
mov bomb, >right
protectright2loop djn protectright2, #BombingLength
mov.ab #1, right ; reset bombing position
mov.ab #BombingLength, protectright2loop ; reset bombing length
jmp protectright2

protectright3
mov bomb, >right
protectright3loop djn protectright3, #BombingLength
mov.ab #1, right ; reset bombing position
mov.ab #BombingLength, protectright3loop ; reset bombing length
jmp protectright3

right dat #1

WarriorEnd
dat $0, $0

 >> Stay informed about: Warrior: Skybuck's ProtectorV4FasterNoSelfKill 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
My first warrior. - Watch him run in pMARS with the default window size for full effect. ;redcode-94 ;name HeathTest01 ;author Heath Caldwell ;assert 1 linelen equ (157) blocklen equ (5) org start x dat #0, #0 y dat ...

AI warrior. - Hi everybody. I'm totally new to this field, so I'm sorry if the question sounds silly...... Does anybody have designed a warrior using AI techniques (like fuzzy logic or Neural Network)? Do you think that such a technology could be too much "heavy...

tiny warrior: desTiny - R.I.P. Destiny After pushing off i would like to publish desTiny. desTiny was based on "Soft as Silk" which get an nice age on tiny. I have changed the decoymaker in front to an 2c-quickbomber which gave him nice extra points. After boot i ju...

Score Surface for 94nop - Hi, some anonymous person (still called "bvowk" for simplicity ;-) is so kind to provide access to a pile of computers. I have suggested to calculate one score surface for standard settings. It takes roughly 1000 times the time of one "no...

Bug in pMARS - Hi, either I don't know how EQUs work or I have found a bug in the parser of pMARS. So far I cound pin it down to: ;redcode-tiny ;name test ;assert CORESIZE == 800 v3 EQU 3 * (3 / 2 + 1) + 3 v4 EQU (CORESIZE - v3) dat.f v3, v4 With the..
   Game Forums (Home) -> Core War All times are: Ekaterinburg, Islamabad, Karachi, Tashkent (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]