Article 1371 of rec.games.corewar: 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 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,