🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.corewar
Article #285

Lazy imp-ring defense [X-hill]

#285
From: Eric J. Schwertfeger
Date: Sun, 15 Nov 1992 20:44
31 lines
1901 bytes
Imp rings on the X-hill tend to work differently than they do on the
standard hill.  Among the reasons for this, the largest step an
imp-ring can use on the X-hill is 250, which limits you to a few values,
like 127, 63, and 21.  One of the effects this has on gating is that
you can't be sure what step is being used in the attack, so you need
to make your gates adaptive.  The problem with this is that X-hill
programs tend to be larger, hence more vulnerable to imp rings and 
my adaptive gates tend to be just large enough that it either won't
fit, or makes the program too big of a target.

Well, I came up with what I call the lazy imp-ring defense, which is
to launch an imp if you unexpectedly find yourself outside your program.

Many of my programs use monitors, which just wait for a certain number
of clock cycles to occur, then do some action.  Here is how it looks
in most of my programs

	MOV	#WAIT, DELAY
DELAY	DJN	DELAY,#0
	JMZ	DOIT,DELAY
	MOV	0,1

Basically, as soon as the imp ring writes (MOV 0,STEP) to DELAY,
it drops out of the delay loop, and since DELAY isn't 0, we know we left
abnormally.  Now, an imp isn't the best imp-ring defense, but I find it
scores much better than many of my own programs (Sonic Boom in particular)
and at any rate, deprives the opponent of a lot of points.

-- 
Eric J. Schwertfeger, maniac@cs.unlv.edu
Technical Details
Message-ID: <1992Nov15.204451.9870@unlv.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!know!cass.ma02.bull.com!think.com!spool.mu.edu!sol.ctr.columbia.edu!news.unomaha.edu!nevada.edu!jimi!taj.cs.unlv.edu!maniac

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!know!cass.ma02.bull.com!think.com!spool.mu.edu!sol.ctr.columbia.edu!news.unomaha.edu!nevada.edu!jimi!taj.cs.unlv.edu!maniac
From: maniac@taj.cs.unlv.edu (Eric J. Schwertfeger)
Newsgroups: rec.games.corewar
Subject: Lazy imp-ring defense [X-hill]
Message-ID: <1992Nov15.204451.9870@unlv.edu>
Date: 15 Nov 92 20:44:51 GMT
Sender: news@unlv.edu (News User)
Reply-To: maniac@taj.cs.unlv.edu (Eric J. Schwertfeger)
Organization: UNLV Computer Science and Electrical Engineering
Lines: 31