#include "aibots.h" int main() { int dir = 0,range,botid; unsigned long t1,t2; init("Seek and Destroy 2"); while(1) { getinfo(NULL,NULL,NULL,NULL,&t1,&t2); scan(dir,&botid,&range); if(range == -1) { dir += 5; } else { if(range > 20) move(dir,range); else if(range > 5) fire(dir,range); if(t2 - t1 < 100) move(dir+120,10); } } }