From news-rocq.inria.fr!irisa.fr!univ-rennes1.fr!univ-angers.fr!ciril.fr!oleane!newsxfer3.itd.umich.edu!newsxfer.itd.umich.edu!uunet!in2.uu.net!binary.alaska.net!not-for-mail Tue May 5 11:14:51 1998 Article: 8958 of rec.games.corewar Path: news-rocq.inria.fr!irisa.fr!univ-rennes1.fr!univ-angers.fr!ciril.fr!oleane!newsxfer3.itd.umich.edu!newsxfer.itd.umich.edu!uunet!in2.uu.net!binary.alaska.net!not-for-mail Message-ID: <354E950D.74F5@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: help! Content-Type: multipart/mixed; boundary="------------6B042DA47949" Lines: 146 Date: Tue, 05 May 1998 04:21:57 GMT NNTP-Posting-Host: anc-p54-23.alaska.net NNTP-Posting-Date: Mon, 04 May 1998 20:21:57 AKDT Organization: InternetAlaska This is a multi-part message in MIME format. --------------6B042DA47949 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit hello all. i am completely new at core war, and completely new to assembler. nonetheless, friday i searched the net, and found out about corewar for the first time. i downloaded as much as could. then i studied in my dimly lit hovel, until i could ALMOST understand Dwarf (it's not that funny...). so things continued over the weekend. it is now monday, and i am trying to wrte my frist warrior. i wrote one. it was terrible. it could only defeat stationary warriors. i made TEN variations. they are all terrible. i am rather enexperienced in programming, and have never encountered assembly before. i am also not even to higher education...(hopefully that was cryptic...)...and i need help! i am attaching my warrior, "loserdude", in all ten forms. (i have no idea how attachements on newsgroups work...). please have a look at them, and tell me what is wrong! notice that i know i have made many mistakes in the 4-7 lines of code in each. please post a reply here, or/and preferebly, e-mail me at mrprogrammer@eartling.net (PLEASE, PLEASE, PLEASE do not read it...). thanks in advance! bye! -me --------------6B042DA47949 Content-Type: text/plain; charset=us-ascii; name="loserdude.red" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="loserdude.red" ;redcode-94 ;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 --------------6B042DA47949 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,gate mov -4,5 mov -4,5 mov -4,5 end bomb end body --------------6B042DA47949 Content-Type: text/plain; charset=us-ascii; name="loserdude8.red" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="loserdude8.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,7 bomb add #4,1 dat #0 spl -2,3 spl bomb,@bomb mov -2, clr mov bomb, 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: <355233BD.177E@alaska.net> <3557E04C.5652@dial.pipex.com> Content-Type: multipart/mixed; boundary="------------607B624278D7" Lines: 99 Date: Tue, 12 May 1998 05:05:49 GMT NNTP-Posting-Host: anc-p64-188.alaska.net NNTP-Posting-Date: Mon, 11 May 1998 21:05:49 AKDT Organization: InternetAlaska 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,gate mov -4,5 mov -4,5 mov -4,5 end bomb end body --------------607B624278D7--