From news-rocq.inria.fr!jussieu.fr!oleane!news.maxwell.syr.edu!newsfeed.wli.net!uunet!in1.uu.net!binary.alaska.net!not-for-mail Wed Jul 8 21:29:48 1998 Article: 9307 of rec.games.corewar Path: news-rocq.inria.fr!jussieu.fr!oleane!news.maxwell.syr.edu!newsfeed.wli.net!uunet!in1.uu.net!binary.alaska.net!not-for-mail Message-ID: <35A2F5DC.1878@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="------------2E9518196FC9" Lines: 66 Date: Wed, 08 Jul 1998 04:27:21 GMT NNTP-Posting-Host: 209.112.144.17 NNTP-Posting-Date: Tue, 07 Jul 1998 20:27:21 AKDT Organization: Internet Alaska Inc. -- http://www.alaska.net This is a multi-part message in MIME format. --------------2E9518196FC9 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Okay, apparently I know no more about RedCode now then a month ago...oh well. I started a supposedly simple warrior to work on while waiting for the results of another variant of Swarm to come back to me. It was supposed to be my first warrior that would stand any chance against a paper. Pretty much all it is is a two-pass coreclear, spl 0&jmp -1/dat. Unfourtuntly, I've had no coffee today, and can't think straight... for some reason it ends up bombing itself with the spl bomb. I really hope this is something simple, not a huge error...since the code isn't commented, I'll describe it here- It starts immediately, throwing out its spl/jmp bomb (later on i'll boot, giving the nasty papers time to spread, and ensuring one will live to the dat clear). I also have 89 lines of dat 1,1 's behind me, for a decoy and something to stop my djn stream. I don't have an idea how 2 pass cc's usually work, so I figured I should use a djn, which will monitor a address behind me. The spl bomb is a spl #1, so I thought that when it was placed on the address watched by the djn, the djn would get a value of 0, and pass control onto the rest of the program. Then, the warrior would split, one process laying down a djn-stream going fowards, the other doing a core clear backwards, until the end of the round. When I run this, the spl coreclear works, but it goes right pass my djn-watched address, and hits me. Then, it stops (I guess it overwrote the mov's), and I do a short bombing run somewhere in the middle of the core. As usual, I have absolutely no idea what is going on, and would appreciate it if someone could enlighten me. Thanks. -WFB --------------2E9518196FC9 Content-Type: text/plain; charset=us-ascii; name="1man.red" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="1man.red" ;redcode-b ;name 1-Man ;author WFB ;strategy Need...coffee...ugh. ;assert CORESIZE==8000 start mov bomb1,@ptr mov bomb2,-56 spl 2,<-1000 djn <0,<-10 mov 10,>10 jmp -1,<-100 bomb1 spl #1,<-2667 bomb2 jmp -1,<2667 ptr dat #100,#100 dec for 89 dat 1,1 rof end start --------------2E9518196FC9--