Question: I need help to build a battleship program where theres a 1 0 x 1 0 grid where each player ( 2 total ) first

I need help to build a battleship program where theres a 10x10grid where each player(2total)first choose where to place their battleships. battleships: 3total(1: 1total space, 1: 2total spaces, 1: 3total spaces)once each user places their battleships then the users should take turns guessing ex)A1.the gameplay should work like a regular battleship game where the boats appear through guessing spaces. the boats could be revealed in any way that makes sense Such as every space of the board being filled by a . then revealing the spaces of the boat with a O and missed guesses by taking out . and when a boat is found convert all the found spots O with X. These are simply examples and can be done however you please. The program should include Branches(Has at least 2branches (if/else statements)),Loops(Has a while-loop and a for-loop.),Functions(Has at least 1void function and 1non-void function, functions makes use of pass-by-value parameters and pass-by-reference parameters),Data Structures(uses arrays),file stream(Program reads or writes from/to a file.),Classes(Class contains at least 2member functions and at least 1constructor,class is written not in the main file, but in a separate .h and .cpp file),README(Zip folder contains a README.txt that describes the purpose of the project and application, a description of how to use the program, and directions on how to compile the program)

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 Programming Questions!