From news-rocq.inria.fr!jussieu.fr!oleane!newsxfer3.itd.umich.edu!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!ais.net!uunet!in3.uu.net!binary.alaska.net!not-for-mail Thu May 14 16:49:15 1998 Article: 9031 of rec.games.corewar Path: news-rocq.inria.fr!jussieu.fr!oleane!newsxfer3.itd.umich.edu!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!ais.net!uunet!in3.uu.net!binary.alaska.net!not-for-mail Message-ID: <355A56F4.5CBD@alaska.net> From: cgbean@alaska.net Reply-To: cgbean@alaska.net X-Mailer: Mozilla 3.01Gold (Win95; I) MIME-Version: 1.0 Newsgroups: rec.games.corewar Subject: Re: dwarf References: <19980513004035.4235.rocketmail@send1a.yahoomail.com> Content-Type: multipart/mixed; boundary="------------2DC3AF663E2" Lines: 151 Date: Thu, 14 May 1998 02:23:44 GMT NNTP-Posting-Host: anc-ns5-80.alaska.net NNTP-Posting-Date: Wed, 13 May 1998 18:23:44 AKDT Organization: InternetAlaska This is a multi-part message in MIME format. --------------2DC3AF663E2 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Paul-V Khuong wrote: > > ---cgbean@alaska.net wrote: > > > > This is a multi-part message in MIME format. > > > > --------------607B624278D7 > > Content-Type: text/plain; charset=us-ascii > > Content-Transfer-Encoding: 7bit > > > > Robert Macrae wrote: > > > > > > cgbean@alaska.net wrote: > > > > > > > ;name dwarf > > > > ;author dewdney, this is an altered version > > > > ;strategy duh. why doesn't this work??!?!? > > > > ;assert 1 (actually should be coresize=8000, but i'm not sure of > the > > > > ;syntax...) > > > > > > Try CORESIZE == 8000. The capitals are because variables are case > sensitive, the > > > == because this fits with other alternatives like !=, <=, >= etc. > I think this is > > > probably "C" syntax though I don't know. > > > > > > > add #4,3 > > > > mov 2,@2 > > > > jmp -2 > > > > dat 0,#4 > > > > > > This looks ok, it should bomb through core at a step of +4. It is > not a terribly > > > effective attack against most modern warriors but it should get a > few wins > > > against stones and oneshots. > > > > > > > or perhaps that does work. anyhow, whenever i add something to > a dat > > > > statment, it still is executed as dat #0. > > > > > > Adding 4 to DAT #0,#4 turns it into DAT #0,#8. This may not look > particularly > > > natural but the "B" field is usually field modified by default. > You can use > > > modifiers like ADD.a to change this. > > > > > > -- > > > > > > Regards, > > > > > > Robert Macrae > > thanks. this is so confusing....i'm trying to get started in > this...but > > i have no previous experience in assembler. obviously, i lack alot of > > fundemental ideas and natural syntax use, but hopefully i'll be able > to > > learn about this. i've always figured thing out before...i think the > > main reason behind my total failing to grasp anything at all related > to > > core war is the fact that i haven't had much time to mess around with > > programs. i wrote a program, which didn't work at all. in fact, it > > self destructs...a few people gave some suggestions when i posted it, > > but most went along the lines of "ARE YOU INSANE?!?!?!?". oh well. i > > thank everyone anyways. actually, they were much more > > polite...unfourtuntly, none of their comments on the warrior made > sense > > to me. apperently it is obvious why it is blowin' its own code to > bits > > to them, but not to me. . maybe someone could answer > > again...i'll include some code. please tell me what's wrong! thank > > you! remember, i wrote this 3 days after learning about core war for > > the first time, and have not modified it since. i'll attach three > > versions of loserdude.red. thanks for reading my rants and > > raves...don't laugh too hard... > > thanks...-me > > > > --------------607B624278D7 > > Content-Type: text/plain; charset=us-ascii; name="loserdude.red" > > Content-Transfer-Encoding: 7bit > > Content-Disposition: inline; filename="loserdude.red" > > > > ;redcode > > ;name loserdude > > ;author me > > ;startegy i dunno. it moves, fires, moves fires, etc. > > ;this is my first warrior. > > ;assert 1 > > body mov 0,7 > > mov 1,7 > > add #4,boom > > mov 2,6 > > mov 2,6 > > mov boom,@boom > > boom dat #0 > > > > end boom > > end body > > > > --------------607B624278D7 > > Content-Type: text/plain; charset=us-ascii; name="loserdude10.red" > > Content-Transfer-Encoding: 7bit > > Content-Disposition: inline; filename="loserdude10.red" > > > > ;redcode-94 > > ;name loserdude > > ;author me > > ;startegy i dunno. it moves, fires, moves fires, etc. > > ;this is my first warrior. > > ;assert 1 > > gate equ body-13 > > > > body mov 0,7 > > bomb add #4,1 > > dat #0 > > spl -2,5 > > spl bomb,@bomb > > mov -2,4 > > mov -2,4 > > clr mov bomb, > > > end body > > > > --------------607B624278D7 > > Content-Type: text/plain; charset=us-ascii; name="loserdude7.red" > > Content-Transfer-Encoding: 7bit > > Content-Disposition: inline; filename="loserdude7.red" > > > > ;redcode-94 > > ;name loserdude > > ;author me > > ;startegy i dunno. it moves, fires, moves fires, etc. > > ;this is my first warrior. > > ;assert 1 > > gate equ body-6 > > > > body mov 0,8 > > add #8,2 > > mov bomb,@bomb > > bomb dat #0 > > clr bomb,>gate > > mov -4,5 > > mov -4,5 > > mov -4,5 > > > > end bomb > Wonder why doesn't work?? : The assembler stops reading at the 1st > end; u do "END BOMB". this means that it starts execution to bomb & > -> by this die (poor process) > > end body > > > > --------------607B624278D7-- > > > > > > == > Vive le Québec libre... dé souverainistes!!! > > _________________________________________________________ > DO YOU YAHOO!? > Get your free @yahoo.com address at http://mail.yahoo.com thanks to all that have helped me!!! i have actually made a WORKING WARRIOR! YAY! it is extremely generic, and uses no cool strategies, but i intend to send it to the beginner's hill to see how well it fails anyway. again, thanks. here it is! i still could make it better, but oh well. -me (WFB) p.s.-DON'T LAUGH TOO HARD!!! --------------2DC3AF663E2 Content-Type: text/plain; charset=us-ascii; name="loserman!!!.red" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="loserman!!!.red" ;redcode-94 ;name loserman!!! ;author me (WFB) ;startegy i dunno. a bad bomber. ;strategy this is a slightly improved version of loserdude.red ;assert CORESIZE==8000 body mov 5,4001 mov 5,4001 mov 5,4001 mov 5,4001 spl 3997 add #4,boom mov boom,@boom jmp -2 boom dat #0,#0 end body --------------2DC3AF663E2--