This a radar simulation for the K4K tank battle game. It consists of tank at location (0,0), target at random position, a radar beam on the tank, and a projectile is fired when the Target is detected. The radar rotates clockwise. The radar can detect out 80 units (the beam is 80) long. The radar scan rate is 7.2 seconds and the beam moves in five degree increments every .1 seconds.
K4K is trying to develop a tank battle game where the tank is smart and can navigate the battle space searching for enemy targets. This is a short example to demonstrate the principle.