Roy van Rijn
unread,May 6, 2013, 3:22:59 AM5/6/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hey all,
We all know the concept behind clear-directed scanners right? A scanner with a SPL-clear, when the scanner finds something the SPL-clear is redirected to that position and it keeps scanning.
The problem with this strategy is the initial state of the clear, it isn't very effective to just start clearing somewhere. That is why the Zooom-trick was invented. This warrior didn't start the clear until it found something, without more lines of code, very clever!
Yesterday I thought of a new strategy for the initial clear, instead of waiting with the clear like Zooom... I wanted a warrior that bombs scattered at the scan locations first, switching to a clear once a target has been found.
This is what I came up with, it doesn't score very well... but who knows, I might have missed some obvious improvements. It is based on Lux Aeterna:
;redcode-94nop quiet
;name Boclr
;author Roy van Rijn
;strategy Bombing clear scanner
;strategy New type of scanner trick
;assert 1
times equ 499
step equ 208
span equ 8
clrPtr dat shoot+1,0
scnPtr dat scan+3+(times*step) , scan+3+span+(times*step)
for 8
dat 0,0
rof
clear spl #step , }step+1
mov.i b , >clrPtr
djn.f -1 , >clrPtr
b dat <2667 , }16
for 10
dat 0 , 0
rof
att mov.x scnPtr , clrPtr
shoot mov.i clear , @scnPtr ;gets self-mutated in @clrPtr
incr sub.f clear , scnPtr
scan seq.i *scnPtr , >scnPtr
djn.b att , {clrPtr
loop jmp shoot , >clrPtr ;gets bombed with SPL bomb
gate jmp clear
end scan