Play Gravity Wars

This is the 2002 PERL/Tk version of the game, ported to JavaScript so it runs right in your browser: same physics, same random battlefields, same ships. Two players take turns on the same computer or phone.

Current player: 1 (Enterprise)

How to play

The full rules and history are in the README, and the original PERL program is on the Gravity Wars page.

About this version

The physics, random setups, ship drawings, and controls are carried over from gravity_wars.pl. The differences: the torpedo now flies across the screen in real time (the PERL version only showed the path after calculating it), the battlefield is always 640×480 and shrinks to fit smaller screens, messages appear below the battlefield instead of on the console, and a torpedo stuck in orbit for 40 seconds ends the turn.