;redcode-94x ;name Mavin Manyshaped AX 116 ;author Steve Gunnell ;strategy P^3 switcher -> dodger/stone/scanner ;assert 1 org pGo ; -------------- ; ---- Dodger ---- ; -------------- iGate equ (iClr-5) iIMP equ 47183 iScan jmz.f #0 , }iPtr nop }iPtr , }iPtr iCopy mov iGate djn.f iClr , >iGate iWipe dat 1 dat.f $0 , $0 dat.f $0 , $0 dat.f $0 , $0 dat.f $0 , $0 ; -------------- ; ---- Scanner ---- ; -------------- STEP equ 17607 START equ 0 IMPNUM equ 49153 bptr equ head-2 head slt #START , #tail-(bptr)+5 mov.a head , bptr trash mov *tail , }bptr add.a #STEP , @hptr jmz.f trash , *head hptr jmn.a @hptr , head jmp @hptr , }tail tail dat.i #1 ,#1 spl #0, {0 eEnd mov.i #1, {1 dat.f $0 , $0 dat.f $0 , $0 dat.f $0 , pTab ; -------------- ; ---- Switcher ---- ; -------------- pLoc equ 123 pDodger equ 0 pStone equ (cBomb+1)-(iWipe+1) pScanner equ eEnd-(iWipe+1) Offset equ 2267 pGo ldp.a #0 , #pTab ; 21 on win ldp.a #pLoc , pTab ; 20 on loss mod.ba *pGo , pTab ; 19 on tie stp.b *pTab , #pLoc add.x *pTab , pPtr mov @pPtr , *pPtr mov