This is a Python implementation of the Battleship game where the computer plays against itself. The game board is a 10x10 2D list, and five ships are randomly placed on it at the start of the game.
The game is played against the computer, so make ‘computer’ players capable of making random plays. The AI does not have to be smart, but it should know whether or not a given move is legal. (i.e. it ...