From news-rocq.inria.fr!jussieu.fr!math.ohio-state.edu!howland.reston.ans.net!cs.utexas.edu!geraldo.cc.utexas.edu!usenet Wed Jan 24 11:29:47 1996 Article: 3642 of rec.games.corewar Path: news-rocq.inria.fr!jussieu.fr!math.ohio-state.edu!howland.reston.ans.net!cs.utexas.edu!geraldo.cc.utexas.edu!usenet From: John K W Newsgroups: rec.games.corewar Subject: Re: Program "0 for 100" (length 6) by "John K W" Date: 24 Jan 1996 03:31:19 GMT Organization: The University of Texas at Austin, Austin, Texas Lines: 50 Message-ID: <4e4967$pn2@geraldo.cc.utexas.edu> References: <4e3dgi$5cq@geraldo.cc.utexas.edu> NNTP-Posting-Host: slip-36-15.ots.utexas.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 1.22 (Windows; I; 16bit) akemi@netcom.com (David Boeren) wrote: >John K W (jwilkinson@mail.utexas.edu) wrote: >: ;redcode-94 >: ;name 0 for 100 >: ;author John K W >: ;strategy Lose points. Break records. :-) > >: p: ldp.b #0, #0 > >: sne.b p, #-1 ;die first round >: dat 100, 200 > >: seq.b p, #0 >: jmp 1 >: dat 100, 200 > >Hmm, I'll have to try when I get home, but I think this can be done in only >4 instructions. I'll post it if it works... Geez, I hadn't even CONSIDERED optimizing it. :) p: ldp.b #0, #0 seq.b p, #-1 ;die first round seq.b p, #0 jmp 1 There. That should do it in four lines. Three lines would be more difficult. Hmmm.... Ahh, I've got it. Here: ;redcode-94 ;name 0 for 100 v4 ;author John K W ;strategy Lose points. Break records. :-) ;strategy v4- commit suicide more efficiently. :P p: ldp.b #0, #0 seq.b p, #-1 ;die first round jmz.b }0, p >Anyone know how to do it without using pspace? That would be REALLY >impressive! Impressive, yes. Impossible, almost. -- / John K. Wilkinson - jwilkinson@mail.utexas.edu \ | "I don't have the power because I've got the monkeys. I've got | \ the power because I'll set the monkeys LOOSE." -Dave Foley / -=- http://ccwf.cc.utexas.edu/~ifio452/ -=-