about AI
I can assure you that AI has no more knowledge about ships than player. It just uses Monte-Carlo method to maximize estimated damage after shot (and tries to shoot chequer-wise).
If the computer blows up many your ships in one turn, use against him barrels. They are made for this purpose.