From news-rocq!jussieu.fr!enst!freenix!sunqbc.risq.qc.ca!logbridge.uoregon.edu!arclight.uoregon.edu!wn4feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail Wed Oct 27 20:42:14 1999 Article: 10893 of rec.games.corewar Path: news-rocq!jussieu.fr!enst!freenix!sunqbc.risq.qc.ca!logbridge.uoregon.edu!arclight.uoregon.edu!wn4feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: netmantis@netzero.net Newsgroups: rec.games.corewar Subject: Newbie needs help Date: Wed, 27 Oct 1999 17:36:20 GMT Organization: Deja.com - Before you buy. Lines: 25 Message-ID: <7v7d6k$8ja$1@nnrp1.deja.com> NNTP-Posting-Host: 4.16.120.123 X-Article-Creation-Date: Wed Oct 27 17:36:20 1999 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 95) X-Http-Proxy: 1.1 x40.deja.com:80 (Squid/1.1.22) for client 4.16.120.123 X-MyDeja-Info: XMYDJUIDnet_mantis Xref: news-rocq rec.games.corewar:10893 I read about corewar, and decided to try to get into it. I read a few of the FAQs, and got a few tutorials, but I have run into a problem with my first warrior. It is a modified dwarf, but it only seems to set up a gate. Can anyone help me with it? Here is the warrior: ;redcode ;name Dwarven warrior ;author Net Mantis org dwarf dat #0 ;bomb1 dat #0 ;bomb2 dwarf mov #-2, #5 ;lunch bomb ahead mov #-2, #-5 ;lunch bomb behind add #-2, #1 ;incriment ahead coordinates sub #-2, #1 ;decriment behind coordinates jmp dwarf end What am I doing wrong? Please keep in mind the fact that I have only been doing this for 2 days, and just made it stop killing itself. :) Sent via Deja.com http://www.deja.com/ Before you buy. From news-rocq!jussieu.fr!oleane!news.maxwell.syr.edu!nuq-peer.news.verio.net!news.verio.net!easynews!news-west.eli.net!not-for-mail Fri Oct 29 19:54:32 1999 Article: 10898 of rec.games.corewar Path: news-rocq!jussieu.fr!oleane!news.maxwell.syr.edu!nuq-peer.news.verio.net!news.verio.net!easynews!news-west.eli.net!not-for-mail From: "Ransom Smith" Newsgroups: rec.games.corewar References: <7v7d6k$8ja$1@nnrp1.deja.com> <7v7lb1$eud$1@nnrp1.deja.com> Subject: Re: Newbie needs help Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Message-ID: Date: Thu, 28 Oct 1999 12:17:10 GMT NNTP-Posting-Host: 207.173.245.190 X-Complaints-To: abuse@ctaz.com X-Trace: news-west.eli.net 941113030 207.173.245.190 (Thu, 28 Oct 1999 06:17:10 MDT) NNTP-Posting-Date: Thu, 28 Oct 1999 06:17:10 MDT Organization: Ctaz.com NewsReader Service Xref: news-rocq rec.games.corewar:10898 Usually, a dwarf will keep its pointer stored in the bombs, not in the MOV instructions. This makes it easier to see the bombs in cdb, and helps throw scanners off your trail. For this result, modify the warrior like so: > ;redcode > ;name Dwarven warrior > ;author Net Mantis > org dwarf > dat #0, 0 > dat #0, 0 > dwarf mov -2, 5 ;lunch bomb ahead > mov -2, -5 ;lunch bomb behind > add # 5, -4 ;incriment ahead coordinates > sub #5, -4 ;decriment behind coordinates > jmp dwarf > end Also, you were adding 5 to one line, and subtracting -5 from the other. That's fixed too. Note that subtracting negative five is the same as adding five.