Article View: rec.games.corewar
Article #180Decrement Protection
From: Wayne Edward Sheppard
Date: Thu, 08 Oct 1992 12:26
Date: Thu, 08 Oct 1992 12:26
55 lines
2311 bytes
2311 bytes
Here is my program SNAKE. All of my vampiric bombers kept taking
a beating from this new class of bombers that claim to bomb
the core at 150% of c. But a decrement doesn't kill a program.
I designed all of the B-fields so that if any one is decremented,
the bombing routine keeps functioning.
I would really be interested in any other programs that use
this tactic.
;redcode verbose
;name SNAKE
;author WAYNE SHEPPARD
;strategy PITBOMBER
;strategy now with decrement protection
;strategy and extra redundancy
spl start ;hit here
start2 spl 0,pitbomb2 ;One of these three statments
mov @0,@pitbomb2 ;can be decremented and the
sub offset2,@-1 ;bombing goes on
jmp -2
dat #0,#0 ;hit here
dat #0,#0
pbdup2 jmp pit-3,3 ;duplicate pitbomb
pitbomb2 jmp pit-2,2
offset2 dat #-115,#115 ;If this is decremented, we are out of action
dat #0,#0 ;hit here
start spl 0,pitbomb ;making myself larger for scanners
mov @0,@pitbomb ;but helps against bombers
sub offset,@-1
jmp -2
dat #0,#0 ;hit here
offset dat #115,#-115
dat #0,#start2 ;duplicate bomb
bomb dat #0,#start2
dat #0,#0
dat #0,#0 ;hit here
pbdup jmp pit+11,-11 ;duplicate pitbomb
pitbomb jmp pit+12,-12
pit mov @0,<bomb ;Even pit is protected decrement
spl -1 ;NOT spl 0
jmp pit ;hit here
--
Wayne Edward Sheppard
Georgia Institute of Technology, Atlanta Georgia, 30332
uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt7804b
Internet: gt7804b@prism.gatech.edu
Technical Details
Message-ID:
<70423@hydra.gatech.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!prism!gt7804bShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!prism!gt7804b From: gt7804b@prism.gatech.EDU (Wayne Edward Sheppard) Newsgroups: rec.games.corewar Subject: Decrement Protection Message-ID: <70423@hydra.gatech.EDU> Date: 8 Oct 92 12:26:10 GMT Organization: Georgia Institute of Technology Lines: 55