Article 691 of rec.games.corewar: From: Scott_-_Nelson@cup.portal.com Newsgroups: rec.games.corewar Subject: warriors Message-ID: <56724@cup.portal.com> Date: Wed, 1 Apr 92 01:30:36 PST Organization: The Portal System (TM) Lines: 42 Yet another warrior from my collection, Scissors 3.1 Scissors 3.0 is the first program I wrote which used the SLT instruction, (which also only became possible under the '88 standards) Scissors 3.1 made it to the top of the hill many times, and livce to a ripe old age of 91 before being bumped off. ----- cut ----- ;redcode ;name scissors3.1 ;author Scott Nelson ;strategy capture the enemy and put him to work. ;strategy only 5 code lines, scans every location. ;strategy ;strategy 3.1 - fewer DAT statements start add addval, jp ;scan for non-zero B-field (double add) jmz start, @jp ; slt #-16, jp ;O.K. if it's me skip the next instruction mov jp, @jp ; not me! bombs away jmp start ;go find another one. ; ; slave pit ; pit spl 1 ;enemy comes in here spl 1 addval mov 11, <-11 ;this is multi-purpose, it will ;elimate other enemies, kill the pit ;after clearing core, and I use it as ;an ADD value in the main code. jmp pit ; jp jmp pit ;jp at end so SLT will work right end start ----- end cut ----- Notes on scissors 3.1: The step size of 11 is one of the nicest features of this warrior, because it eventually hits EVERY location in core. This is also one of the few warriors which functions as well in a weird coresize (i.e. 11307) as it does in a standard one. (Molerat is another.)