; BOOM! -- mines area, locks onto another bot, detonates ; By Timm Murray #config scanner=3 #config weapon=5 #config armor=0 #config engine=3 #config heatsinks=0 #config mines=1 #config shield=0 #msg I like fireworks! opo 17, 3 ; narrow scan arc (4) ; opo 18, 1 ; overburn on (4) mov cx, 4 ; for looping (1) opo 11, 100 ; get moving (4) :10 opo 22, 10 ; lay mines (4) ipo 10, ax ; get rand num (4) and ax, 127 ; fast modulo (1) opo 14, ax ; turn (4) del 20 ; wait (?) loop 10 ; loop back (1) :20 opo 14, 6 ; turn (4) :25 opo 11, 100 ; make sure we're still moveing (4) ipo 7, ax ; scan (5) cmp ax, MAXINT ; anything? (1) jeq 20 ; if not, loop back (0) opo 15, 0 ; fire! (7) opo 11, 100 ; make sure we're still moving (4) del 10 ; small delay for cooling down (?) cmp ax, 10 ; close enough? (1) jgr 25 ; if not, loop back (0) int 0 ; BOOM! (-) ; EOF