Robocode is a programming tank game for Java and .NET

Robocode
Free
Offline
sourceforge

Robocode is a programming game, where the goal is to develop a robot battle tank to battle against other tanks in Java or .NET. The robot battles are running in real-time and on-screen. The motto of Robocode is: Build the best, destroy the rest!