;redcode-nenad ;author inversed ;name Shot++ ;strategy P^3 switcher: ;strategy Quicksilver-like stone ;strategy Moore-style paper ;strategy Oneshot ;assert 1 ;Minimal impstep is 6397 - 13pt imps ;So I expect paper/stones and scanners ;Stone/imps are possible too ;Paper/imps are feasible, but ineffective ;And of course I expect p-warriors ;P^3 table isn't optimized, but I think it should work fine bdist equ 2100 ;paper and stone bdo equ 1900 ;oneshot x0 equ start org start ;; Boot stone add #8, bps paper spl 1, 0 spl 1, 0 spl 1, 0 mov bofs1 mov bomb, }bofs2 from mov @to+8, }to mov bomb, >bofs3 jmz to, *from bomb dat <6397, <2*6397 ;; Stone shop equ 2699 stime equ 4140 sdjn equ 2813 zstn equ 6539 ;(hit-shop*stime) ss0 spl #0 , 0 sloop mov sbomb , @sptr hit add #shop*2 , sptr sptr mov sbomb , *zstn jmp sloop , 0 dat 0 , 0 dat 0 , 0 sbomb dat shop , >1 for 20 dat 0, 0 rof ;; Oneshot step equ 45 ;increment (x.......o......o......) hop1 equ 15 ; hop1 hop2 equ 15 ; hop2 zofs equ step gap1 equ 5 gap2 equ 11 cptr equ (kill-gap1-1) loop add loop-gap2-5, ptr mov loop-gap2-6, *ptr ptr sne @zofs, zofs+hop1+hop2 jmn.a loop, loop mov.ab ptr, loop-gap2-7-gap1 jmp loop-gap2-5, 0 kill dat 1, hop1 cs0 spl #step, step cloop mov *kill, >cptr mov *kill, >cptr djn.a cloop, }cs0 dat 0, 0 onecpy add.a #gap2+12,bpo onesh mov