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 xgrid where each playertotalfirst choose where to place their battleships. battleships: total: total space, : total spaces, : total spacesonce each user places their battleships then the users should take turns guessing exAthe 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 BranchesHas at least branches ifelse statementsLoopsHas a whileloop and a forloop.FunctionsHas at least void function and nonvoid function, functions makes use of passbyvalue parameters and passbyreference parametersData Structuresuses arraysfile streamProgram reads or writes fromto a file.ClassesClass contains at least member functions and at least constructorclass is written not in the main file, but in a separate h and cpp fileREADMEZip 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
