; Mole 4 ; by Chris King ("PiGuy") ctk314@yahoo.com ; Mole is another robot that follows my "simple, yet effective" theory. ; He has a tiny scanner and is apparently blind, but uses his radar(!) to ; chase down his opponents. The freed-up config points from the scanner give ; Mole a stronger weapon, which he only uses at close range. He is superb ; in a rumble. ; After enhancing Mole in versions 2 and 3, he was ready for a config ; change. His new configs allowed extra firing and heat level checking code ; to be removed, making him a mere 27 lines! #config scanner=0 #config weapon=3 #config armor=2 #config engine=5 #config heatsinks=2 #config shield=0 #config mines=0 #time 5 #def dir opo 22,10 opo 22,10 ;mov ax,1 ;int 4 ;int 3 opo 13,64 opo 17,6 mov dir,14 !loop cmp @0,0 jne !move neg dir opo 12,128 opo 14,128 del 56 ; total delay for #time 3=48, 4=64, 5=80 ;del 32 ;opo 11,100 ;del 32 opo 11,100 ;del 32 del 24 !move opo 11,100 ipo 9,dx cmp dx,250 jgr !chkturn ipo 7,ax cmp ax,1500 jgr !chkturn ;ipo 2,ax ;cmp ax,160 ;jae !chkturn ;mov ax,@3 ;sal ax,2 ;opo 15,ax ;opo 14,ax opo 15,@3 ;opo 14,@3 !chkturn cmp bx,dx jgr !noturn opo 14,dir !noturn mov bx,dx ;jmp !loop jne !loop jeq !loop