From news-rocq.inria.fr!jussieu.fr!math.ohio-state.edu!howland.reston.ans.net!newsfeed.internetmci.com!netnews.nwnet.net!mule.fhcrc.org!news Wed Jun 5 11:38:59 1996 Article: 5350 of rec.games.corewar Path: news-rocq.inria.fr!jussieu.fr!math.ohio-state.edu!howland.reston.ans.net!newsfeed.internetmci.com!netnews.nwnet.net!mule.fhcrc.org!news From: Ross Morgan-Linial Newsgroups: rec.games.corewar Subject: Help improving warrior Date: Tue, 04 Jun 1996 19:14:49 -0700 Organization: Fred Hutchinson Cancer Research Center Lines: 43 Message-ID: <31B4ED99.826@fhcrc.org> NNTP-Posting-Host: port03-rem.fhcrc.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0 (Win16; I) This is my warrior, Not Very Pretty. It is getting around 107 points on the '94 hill at Pizza - not quite enough to make it on. Does anyone have any advice on improving it? Apologies in advance for the hard-to-read code. I don't completely understand how it works myself :=( ;redcode-94b ;name Not Very Pretty 1.0 ;author Ross Morgan-Linial ;assert CORESIZE==8000 ;strategy FAST bomber -> two-pass coreclear -> imp gate ;version 1.0 org start start loop1 ;first, a 50% of C bombing loop add.i addto, indic mov bomb, @indic mov bomb, *indic djn loop1, #799 ; now, a two-pass coreclear spl 0, <-30 ;don't bomb here mov *ptr, Newsgroups: rec.games.corewar Subject: Re: Help improving warrior Date: 5 Jun 1996 04:02:24 GMT Organization: Flash-Net Internet Service Provider, 817-332-8883 Lines: 58 Message-ID: <4p30sg$h93@excelsior.flash.net> References: <31B4ED99.826@fhcrc.org> NNTP-Posting-Host: p-248.flash.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 1.22 (Windows; I; 16bit) Ross Morgan-Linial wrote: >This is my warrior, Not Very Pretty. It is getting around 107 points on >the '94 hill at Pizza - not quite enough to make it on. Does anyone have >any advice on improving it? Apologies in advance for the hard-to-read >code. I don't completely understand how it works myself :=( Well, I started off by making the code legible. :) Jeez. Put the variable names on the same line as the line itself. And try to put the code in sort of a paralell line, ya know? Anyway... the main problem seems to be that you have this very large setup for your core clear. You might want to try seperating your code. Ya know, put 80 "dat 0,0" statements in the middle there? Also, I find it interesting that your going to so much effort to have this "<" coreclear... any particular reason why? And why don't you combine "addto" and "bomb2"? Perhaps get rid of the "spl 0, <-30" statement, and replace it with "spl #4730, #4730"? ;redcode-94b ;name Not Very Pretty 1.0 ;author Ross Morgan-Linial ;assert CORESIZE==8000 ;strategy FAST bomber -> two-pass coreclear -> imp gate ;version 1.0 org start start loop1 add.i addto, indic ;first, a 50% of C bombing loop mov bomb, @indic mov bomb, *indic djn loop1, #799 ; now, a two-pass coreclear spl 0, <-30 ;don't bomb here mov *ptr,