From news-rocq.inria.fr!univ-lyon1.fr!ghost.dsi.unimi.it!batcomputer!hookup!news.kei.com!news.byu.edu!cwis.isu.edu!u.cc.utah.edu!math.utah.edu!news.math.utah.edu!morrell Tue Mar 29 11:03:42 1994 Article: 554 of rec.games.corewar Newsgroups: rec.games.corewar Path: news-rocq.inria.fr!univ-lyon1.fr!ghost.dsi.unimi.it!batcomputer!hookup!news.kei.com!news.byu.edu!cwis.isu.edu!u.cc.utah.edu!math.utah.edu!news.math.utah.edu!morrell From: morrell@math.utah.edu (Steven C. Morrell) Subject: Kill Imps!!! Sender: news@math.utah.edu Date: Mon, 28 Mar 1994 18:07:23 GMT Organization: Department of Mathematics, University of Utah Message-ID: Lines: 64 Here is the code for my wildly successful "Kill Imps!!!" which is currently in 3rd place on the Big Hill. It is a CMP-scanner that lays a SPL 0 carrpet over every imp it finds and a SPL 0/JMP -1 trap against all other code. When it is done scanning, it drops into a standard core-clear/imp gate. Clearly, I was inspired by W. Sheppard's Iron Trap when I wrote this, but it has many features not found in Iron Trap. Most importantly, it traps any imp in core, not just the 3-pt type, so it runs better on the Big Hill. Kill Imps!!! scans for imps at 67% of c, while Iron Trap only scans for imps at 33% of c. Kill Imps!!! keeps scanning after it finds an imp, so it is less succeptible to decoys. And finally, it is 8 instructions longer than Iron Trap so it is even easier to find and destroy. A neat thing that I was able to do with the '94 standard was to copy the b-field of 'p' to the b-field of 'p2'. By imbedding 'p2' in the code, I was able to get an extra level of indirection when looking for imps. Warning: For all you newbies out there, Kill Imps!!! is a LARGE warrior; so large that I don't expect it to stay on the hill for long. Ideal warriors are small and fast, durable and effective. Kill Imps!!! is large, fragile, and slower than most CMP scanners because it takes so long to identify imps. Don't make your programs any larger than they must be to get the job done. -- ;redcode-94x verbose ;name Kill Imps!!! ;author Steven Morrell ;strategy Kill Imps!!! step equ -13 flag equ loop-1 d3 equ flag-1001 loop add.i d2,p ;search for enemy p cmp.i loop+step+step,loop+step slt.ab #30,p ;miss self djn.i loop,>100 jmz.b stun,@p ;don't trap zero B-values mov.b p,p2 ;pointer copy p to p2 add.ab #p-p2,p2 slt.ab #-13,@p ;don't trap djn streams p2 cmp.i @p2,@0 ;check for imps cp jmp.i stun,0 mov.ab #100,count ;trap imps mov.i @p,d3 trap mov.i split,@p2 add.b d3,p2 count djn.ab trap,#100 stun mov.i jump,@p ;stun everything else mov.i split,

step+1 ;or clear core, imp-gate. mov.i d1,step-1 d2 dat.i >step+step,>step+step d1 dat.i >step,>step+1 end p -- Steven Morrell morrell@math.utah.edu