Question: code for this program please, i don't understand it game Battleship against an opponent. The main idea of the game is that each player has



code for this program please, i don't understand it
game Battleship against an opponent. The main idea of the game is that each player has a personal 10x10 grid that represents their space in the ocean. Each player's space is only visible to themselves and not to their opponent. Each player places several ships within their own space. Then game play begins. Players alternate turns. On each player's turn, she selects a grid location (like row 5, column 4) upon which to fire. If the opponent has a ship in that location, he calls out "hit". If the space is unoccupied, then he calls out "miss." Play continues until one player has eliminated all of the opponent's ships. You can play a graphical version of the game here: https://www.mathplayground.com/battleship.html We're going to be playing the game on a 10x10 grid. Each player will need to hide 5 ships: Aircraft carrier 5 squares long Battleship- 4 squares long Submarine 3 squares long Destroyer-3 squares long Patrol boat - 2 squares long In today's lab, you're going to be writing a program that sets up the initial game board
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
