Automated Firing

shipFire

This program randomly fires until it hits a ship. Then it determines the orientation of the ship and fires vertically or horizontally on it until it has been destroyed. This program must be run with all other programs to work correctly.