this is the Java AI code

Battleship