The goal is to sink the ship
You sink the ship by hitting it with a torpedo
You hit it with a torpedo by inputting numbers ...etc...