Article 693 of rec.games.corewar: From: Scott_-_Nelson@cup.portal.com Newsgroups: rec.games.corewar Subject: warriors Message-ID: <56725@cup.portal.com> Date: Wed, 1 Apr 92 01:31:40 PST Organization: The Portal System (TM) Lines: 110 One more warrior from my collection, Molerat. Molerat is a variant on Lemmings (see TCWN, spring 1988, page 11) It won the 1990 ICWS tourney and took second in the Grand finally held just afterward. It is not easy to follow the code, so I will outline the basic flow. Start 5 processes running inline (all 5 executing the same instructions) split to one of two "types", add or sub (more on this later) type add ; adds 5 locations to another location makes a copy of itself, splits to the beginning and repeats -and/or- bombs the location pointed to by the adds (perhaps a slave pit?) jumps to the copy. type sub ; subtracts 5 locations from another location makes a copy of itself, splits to the beginning and repeats -and/or- bombs the location pointed to by the subtracts (perhaps a slave pit?) jumps to the copy. ----- cut ----- ;redcode ;name Molrat A.K.A paper ;author Scott Nelson ;strategy - Replicate - start ; start up five inline process spl 1 mov -1, 0 mov -1, 0 spl paper4 ;type add spl paper3 ;type sub spl paper2 ;type add jmp paper1 ;type sub count dat #5 src1 mov #10, 10 ;initialize src for copy sub <203, 204 ;subtract for pit-bombing paper1 mov