From news-rocq.inria.fr!jussieu.fr!fu-berlin.de!newshub.northeast.verio.net!nntp.giganews.com!vellocet.insync.net!uunet!in3.uu.net!binary.alaska.net!not-for-mail Fri May 15 11:32:43 1998 Article: 9039 of rec.games.corewar Path: news-rocq.inria.fr!jussieu.fr!fu-berlin.de!newshub.northeast.verio.net!nntp.giganews.com!vellocet.insync.net!uunet!in3.uu.net!binary.alaska.net!not-for-mail Message-ID: <355BE2BE.5CEF@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="------------7D326A6917" Lines: 69 Date: Fri, 15 May 1998 06:32:24 GMT NNTP-Posting-Host: anc-p44-34.alaska.net NNTP-Posting-Date: Thu, 14 May 1998 22:32:24 AKDT Organization: InternetAlaska This is a multi-part message in MIME format. --------------7D326A6917 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit hello all. could you please look over my latest failure, "one-two.red"? it is supposed to fire SPL's, and then DAT's, but doesn't really work. the way i do it, laying SPL commands seems to have no benefit, but i guess victory is just sweeter that way. i know that i must have made a few bug mistakes somewhere, probably in syntax, but the only thing i can really tell that's wrong is that it is too slow. so if you have any suggestions, please give them to me. i'll sorta run through the program briefly, so you know what i'm trying to do, and since i didn't add any REMarks (BASIC addict...) to the code... it's intention is to bomb the core with SPL 0's, and then right after them a JMP -1, with mod-5 (is that how i use that term? anyway, intervals of 5...) after that, control goes to the copy, which bombs the core with DAT's instead. and...TADUM!!! it then loses! HURRAY! anyway... first it copies the sub-program with the DAT bombs away, then ADDs 5 to the "aimer", and uses the aimer to MOV the SPL 0 command, then decrements the aimer, uses the aimer to MOV a JMP -1 command, increments the aimer, and JMP's back to the ADD #5 . in the meantime, the other bomber copies the aimer to it's one area, and fires a DAT. thus the DAT lands on the SPL 0, killing the enemy process the next execution (ideally...). SPL bomber repeats, and the DAT bomber copies the new value of aimer to it's old aimer. that's about it. it really doesn't work. oh well. now remember, this is my third warrior, and i have no idea how other programmers would accomplish something like this, so i had to think up all my own tecniques, which, inherently, are pathetic (i suffer from low self-esteem...obviously...:)>). please post all suggestions! thank you! -me a.k.a. WFB (should i only put WFB now?) --------------7D326A6917 Content-Type: text/plain; charset=us-ascii; name="one-two.red" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="one-two.red" ;redcode-b ;name One-Two ;author WFB ;strategy splits in two, with one process throwing SPL's, and another DAT's ;strategy only my third warrior, so don't laugh. ;assert CORESIZE==8000 start: mov copy,4001 mov copy2,4001 mov copy3,4001 mov kill,4001 spl 3998 add #5,aimer mov bomb,@aimer jmp 1,aimer bomb: spl 0 explosion: jmp -1 aimer: dat #0,#0 copy: mov -4006,3 copy2: mov kill,@2 copy3: jmp -2 kill: dat #0,#0 --------------7D326A6917--