From news-rocq.inria.fr!univ-lyon1.fr!swidir.switch.ch!scsing.switch.ch!news.dfn.de!darwin.sura.net!howland.reston.ans.net!europa.eng.gtefsd.com!news.umbc.edu!haven.umd.edu!ames!riacs!n243-fsc-1.arc.nasa.gov!graphics_group Thu Apr 14 14:02:21 1994 Article: 639 of rec.games.corewar Newsgroups: rec.games.corewar Path: news-rocq.inria.fr!univ-lyon1.fr!swidir.switch.ch!scsing.switch.ch!news.dfn.de!darwin.sura.net!howland.reston.ans.net!europa.eng.gtefsd.com!news.umbc.edu!haven.umd.edu!ames!riacs!n243-fsc-1.arc.nasa.gov!graphics_group From: Dave Darling Subject: s4b source Message-ID: <1994Apr13.170929.17474@riacs.edu> X-Xxmessage-Id: X-Xxdate: Wed, 13 Apr 94 10:10:29 GMT Sender: news@riacs.edu Organization: RIACS, NASA Ames Research Center X-Useragent: Version 1.1.3 Date: Wed, 13 Apr 94 17:09:29 GMT Lines: 27 I am posting the source for s4b, a simple four-line (grew to five) bomber which made it onto the hill by the skin of its teeth (and, I think, by someone killing one of their other programs....). It's nothing special, but the curious thing is that it converts it- self into a slow core clear. A DAT instruction winds up at "start", and it makes the ADD affect something way out in core somewhere. The B-field of "stone" is pointing to "start", and the autodecrement, MOV, (essentally no-op) ADD, and DJN wind up clearing core. Some constant fiddling could probably adjust this so that the SPL is left alive--unforunately, this version suicides at the end of the clear. ;redcode ;name s4b ;author D. Darling ;strategy Simple 4-line Bomber ;strategy Apologies if this = Herem, etc... ;strategy Now 5-line: self-SPL+core clear step EQU 2365 start SPL 0, <-10 stone MOV <-6, <-12 ADD inc, stone DJN stone, <-3 inc DAT