;redcode-94 ;name Venus Mantrap ;author Chip Wendell ;strategy - pswitcher: 4 components ;strategy All components taken from Mantrap Arcade, by Dave Hillis ;strategy but the brain is new ;assert 1 org think STORE equ 656 ; state storage location w0 equ pboot ;from Nomolos by Ian Oversby w1 equ dwarf ;from Patel's Virus, Ben Ford w2 equ scanb ;mini Blur from Fire and Ice, David Moore w3 equ slDodger ;(CLP) from Alladin's cave, P. Kline ;-------- ; Paper ;-------- pdist equ 4000 ; Not really dist0 equ 5689 dist1 equ 1021 dist2 equ 3607 range1 equ 4723 range2 equ 6892 pboot spl.b 1, <-300 for 6 mov.i -1 silk1 spl.b @0, -1 mov.i bomba, }range1 mov.i bomba, >range1 mov.i {silk1, 1 ;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, think ldp.a #0, in ldp.a #STORE, table mod.ba *in, table stp.b *table, #STORE table jmp }0, # 482 ; 0: action 0 : 9 1 0 spl # w0, # 132 ; 1: action 0 : 0 2 1 spl # w0, # 925 ; 2: action 0 : 1 2 2 spl # w1, # 732 ; 3: action 1 : 6 4 0 spl # w1, # 1422 ; 4: action 1 : 3 5 6 spl # w1, # 785 ; 5: action 1 : 4 5 5 spl # w2, # 55 ; 6: action 2 : 0 3 7 spl # w2, # 1711 ; 7: action 2 : 6 8 7 spl # w2, # 788 ; 8: action 2 : 7 8 8 spl # w3, # 894 ; 9: action 3 : 3 10 6 spl # w3, # 1428 ; 10: action 3 : 9 11 0 spl # w3, # 791 ; 11: action 3 : 10 11 11 spl # w0, # 768 ; 12: action 0 : 9 1 0 in spl # w3, 11 spl # 0, 13 spl # 0, 12 ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ;;;;;;;;;;;;;;; ; ; ; mini Blur ; ; ; ;;;;;;;;;;;;;;; dist equ 2942 ;boot distance step equ 2891 ;scan pattern; -723 might be better time equ 2210 ;number of SPLs copied scanb mov top add #step, #-step*time start jmz.f -2, @-1 jmn top, *top sp spl 0, 0 mov 2, >top-3 djn.f -1, >top-3 dat 0, 5-top ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ slDodger mov p1-pstep pmove add preset ,psnare ; adjust snare for new base mov pb ,pescape ; set copy pointers pcopy mov >pescape ,}pescape ; make copy jmn.b -1 ,pescape ; preset jmp p1+pstep ,-p1-pstep; jump to new location psnare jmp ptrap-2000,+2000 ptrap mod.x #10 ,#1 ; allow only one process stp.ab #0 ,#0 ; complete brainwash ;nop.ab #0 ,#0 ; complete brainwash djn.b -1 ,-1 pincr mov 1 ,-1 ; opponent dies pb dat pstep+p1-pescape,-plen end