a scanner darkly ...

Forum Games General : Games General Discussions - a scanner darkly ...

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: rec.games.corewar (More info?)

 

hi redcoders,

i guess i found a nice way to create anti-stone scanners. here's the
code of "a scanner darkly" which was koth @ multiwarrior hill when i
sumitted it.

the problem is that oneshot strategy seemed not to be the best on the
other hills. any ideas how i can improove it?

;redcode
;name a scanner darkly
;author el kauka

;strategy anti-stone oneshot


org top

top add.ab #2365-1,2
jmz.f top,>ptr
ptr jmz.f top, -3
jmp attack

for 25
dat 0,0
rof


attack mov.b ptr,cl
add.ab #-95+ptr-cl,cl
jmp dclear


for 24
dat 0,0
rof

cl dat 0,0
dat 0,0
bmb dat <2667,12


dclear spl #0,#0
mov.i bmb,>cl
mov.i bmb,>cl
djn.f -1,>cl


end



its easy to implement that "trick" in a cmp-scanner:

top add.f inc,ptr
seq.i }ptr,>ptr
ptr sne.i -3, -13
jmp top
jmp attack

Sponsored Links
Register or log in to remove.

Archived from groups: rec.games.corewar (More info?)

 

> its easy to implement that "trick" in a cmp-scanner:
> top add.f inc,ptr
> seq.i }ptr,>ptr
> ptr sne.i -3, -13
> jmp top
> jmp attack

mmm, I wrote a bomb-detecting oneshot that uses that scan loop. Useful
to avoid bombs. I think i put the code in the web page.

G.Labarga

Reply to Anonymous
Tom's Hardware > Forum > Games General > Games General Discussions > a scanner darkly ...
Go to:

There are 988 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them