From news-rocq.inria.fr!univ-lyon1.fr!jussieu.fr!math.ohio-state.edu!cs.utexas.edu!swrinde!ihnp4.ucsd.edu!agate!msuinfo!netnews.upenn.edu!netnews.cc.lehigh.edu!ns1.cc.lehigh.edu!fjw2 Fri Apr 22 11:54:39 1994 Article: 678 of rec.games.corewar Newsgroups: rec.games.corewar Path: news-rocq.inria.fr!univ-lyon1.fr!jussieu.fr!math.ohio-state.edu!cs.utexas.edu!swrinde!ihnp4.ucsd.edu!agate!msuinfo!netnews.upenn.edu!netnews.cc.lehigh.edu!ns1.cc.lehigh.edu!fjw2 From: fjw2@ns1.cc.lehigh.edu (FRANK JUDE WOJCIK) Subject: Re: More Source Postings Message-ID: <1994Apr21.132222.165403@ns1.cc.lehigh.edu> Date: Thu, 21 Apr 1994 13:22:22 GMT Organization: Lehigh University Lines: 89 >Whew! That's it, I think. Well, I hope to inspire another round of source >postings -- there have been a lot of new programs recently. Does anyone >else want to reveal their secrets? Secrets? My code hardly uses any secrets, and does quite badly, and is for the '88 hill, but here it is anyway. There's a *lot* of optimization that could possibly be done, but I really don't care to. It could probably be redone fairly easily (and possibly more effectively) for the '94 hill, which I may do, but... Here it is anyway. (WARNING: I am a terrible newbie, so go easy! :) This is based on my Zipper series, which also did terribly. But this has active programs instead of DAT decoys. This was *supposed* to do well against all those scanners, but it just was too big & not fast enough, I guess... It starts off with an imp-gate (front program), mod-1 bomber (back program & middle program)(I fooled around with this a bit - making it mod-something else did zilch), and (what I thought was) a neat little trick. The processes are just so that if either the front or back process is killed, "cnt" becomes !=4000. Based on which program is killed, it then copies the retailation program out of the way of the attack, attempts to kill off the other processes, and JMPs to the copied program. The retaliatory bomber is based on Leprachaun(?)(sp) modified to be a 2/3 imp-gate at the end. It was the best I could do. ;redcode verbose ;author Frank J. T. Wojcik ;name Banana Split v1.4 ;strategy Program which acts like three different ones. ;strategy v1.0 -- Initial release. Slow and long. ;strategy v1.1 -- No more bootstrap! Faster. Better bomber. ;strategy v1.2 -- *Much* faster bomber. Probably won't do much, but... ;strategy v1.3 -- Fixed a really stupid bug introduced in 1.2. ;strategy v1.4 -- Turned final bomber into 2/3 imp-gate when done. fp JMP 1,<-5 ;Front Program Top JMP 1,<-6 ADD #1,cnt JMP 1,<-8 JMP -3,<-9 ;Front Program Bottom DAT #0, #0 : [lots of DAT #0, #0's deleted] : DAT #0, #0 cnt DAT #0, #4000 boot SPL fp,cnt (cnt<0), #1 failed --> move fwd MOV 0), #2 failed --> move bck CMP @mvpt1,cpb ;Copy the retaliation program... JMP -2,Back Program ADD #-1,cnt MOV bomb, Michael Constant (mconst@soda.berkeley.edu) > > GM/CS d? p c++++ l u++ e(*) m++ s--/- h f+(++) g++ w++ t+++ r+@ !y > -- ----- Frank J. T. Wojcik "This is that thing you call sarcasm, isn't it?" - D.A. fjw2@lehigh.edu "Oh, very good, Worf. Eat any good books lately?" - Q GE d- -p+ c++++ l u(++) e*() m+@ s++/++ n-@ h+() f- g+(-) w++() t+(+++)@ r !y finger fjw2@cs2.CC.lehigh.edu = C8 E8 73 86 FB DB C2 61 0D 60 23 7A EB CB 23 61