Question: Write a C program Battleship is played on a 10 x 10 grid. The game begins with the five ships (see below) being placed Ships:

Write a C program Battleship is played on a 10 x 10 grid. The game begins with the five ships (see below) being placed Ships: 1. (C) Crusor (2 Holes) 2. (A) Aircraft Carrier (5 Holes) 3. (B) Battleship (4 Holes) 4. (S) Submarine (3 Holes) 5. (D) Destroyer (3 Holes) You will show the player the grid without the ships. If the player's MISSLE misses you will display an M for MISS. If the player MISSLE hits a ship then the letter for that ship is inserted (see letters above). Your code needs to randomly place the five ships at the beginning of the game. Your code needs to keep track of all right and wrong guesses. The game ends when all ships are sunk. After each MISSLE you will display the 10 X 10 Grid allow with a MISSLE counter. The goal is for the user to sink all ships with while using the least amount of missles. The game will have an option to display the past 10 best scores. 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!