Article 3238 of rec.games.corewar: Path: news.cs.utah.edu!cs.utexas.edu!howland.reston.ans.net!swiss.ans.net!cmcl2!CS.Arizona.EDU!news.Arizona.EDU!usenet From: georgel@gas.uug.arizona.edu Newsgroups: rec.games.corewar Subject: Alien 22 rewerse two instruction dwarf. Date: 19 Oct 1994 02:38:56 GMT Organization: University of Arizona, CCIT Lines: 38 Message-ID:Article 3238 of rec.games.corewar: Path: news.cs.utah.edu!cs.utexas.edu!howland.reston.ans.net!swiss.ans.net!cmcl2!CS.Arizona.EDU!news.Arizona.EDU!usenet From: georgel@gas.uug.arizona.edu Newsgroups: rec.games.corewar Subject: Alien 22 rewerse two instruction dwarf. Date: 19 Oct 1994 02:38:56 GMT Organization: University of Arizona, CCIT Lines: 38 Message-ID: <3820s0$cf5@news.CCIT.Arizona.EDU> NNTP-Posting-Host: helium.gas.uug.arizona.edu I'm kindda new to playing corewars on intrnet, though I've read The Armchair universe and programmed a Core war program compatible with it. Well Alien 22 was on the small hill, and though it is not doing that well by itself it could be combined with something else as an improved IMP stomper. Though it has only two instructions it needs additional 2 lines to keep it alive. It bombs in intervals of one only and only in reverse. Well here's code for two of them. This one kills itself ;redcode-x verbose ;name Suicidal Alien 22 ;author Franz ;strategy Two instruction reverse dwarf. Kills itself. Smallest it can be. ;strategy Watch out IMPs where EQU -1 ;where to start coundown from bomb MOV -1,where ;mov instruction to bomb DJN bomb,bomb ;decrement and jump, check not to kill itself END bomb This one has a counter and anyting placed between the counter is protected: ;redcode-x verbose ;name Alien 22 ;author Franz ;strategy Two instruction reverse dwarf. Becomes IMP. ;strategy Watch out IMPs where EQU -4 ;number to start coundown from bomb MOV dat1,@dat1 ;mov istruction to bomb DJN bomb,dat1 ;decrement and jump, check not to kill itself MOV 0,1 ;IMP dat1 DAT #where ;dat bomb and countdown END bomb Where is where to start bommbing from the counter, usually negative the length of the program. dat 1 is the counter. Well I hope you enjoy them and please e-mail me. (Maybe I wasn't the first to do this, I don't know) George Lebl GEORGEL@GAS.UUG.ARIZONA.EDU