;redcode-94 ;name Alien ;author Christian Schmidt ;strategy q^2 -> stone/imp ;strategy faster launcher ;assert 1 org start QS equ (0-200) QD equ 100 QB equ (start-350) CR equ (fnd-which) datz equ (table-3) GAP equ 8 REP equ 15 cBptr equ 3000 iStep equ 2667 qinc dat >(-1)*GAP*2, >GAP dat 9*QS, 1*QS table: dat 5*QS, 2*QS dat 13*QS, 17*QS P: add.f table, table slow: add.ab *P, fnd fast: add.b @P, @-1 which: sne.i datz, @fnd add.ab #QD, fnd add.ba fnd, fnd qbo mov.i qinc, @fnd mov.i qinc, *fnd fnd mov.i (-1)*(GAP/2), @QB sub.x qinc, fnd djn.b qbo, #REP jmp cBoot, }-300 start: seq.i QB+QS*0,QB+QS*0+QD jmp which, 0 seq.i QB+QS*2,QB+QS*2+QD jmp fast, 0 seq.i QB+QS*1,QB+QS*1+QD jmp fast,
P seq.i QB+QS*7,QB+QS*7+QD jmp slow, 0 seq.i QB+QS*6,QB+QS*6+QD jmp slow,
P seq.i QB+QS*11,QB+QS*11+QD jmp slow, {P seq.i QB+QS*15,QB+QS*15+QD jmp slow, }P seq.i QB+QS*10,QB+QS*10+QD djn.f slow, P seq.i QB+QS*5,QB+QS*5+QD jmp >fast, 0 seq.i QB+QS*9,QB+QS*9+QD jmp >fast, {P seq.i QB+QS*13,QB+QS*13+QD jmp >fast, }P seq.i QB+QS*14,QB+QS*14+QD jmp P, 0 seq.i QB+QS*8,QB+QS*8+QD jmp P,
-1, >1 imp mov.i #iStep, *0 end