Question: By using the reference of a TicTacToe program ive built Ive been trying to build a battleship program. The TicTacToe program is really just to
By using the reference of a TicTacToe program ive built Ive been trying to build a battleship program. The TicTacToe program is really just to show what ive been using as a reference and my syle of code which would be nice if you could write it in a similar style as I have a touh time reading and processing code. I need help to build a battleship program where theres a x grid where each player total first choose where to place their battleships. battleships: total: total space, : total spaces, : total spaces once each user places their battleships then the users should take turns guessing ex A 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 wether the spaces are occupied by XO whatever needed to differentiate a space with a battleship or not.
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 constructor class is written not in the main file, but in a separate h and cpp fileREADMEZip folder contains a README.txt that desribes the purpose of the project and application, a description of how to use the program, and directions on how to compile the programAs im currently working on my own program ive left an example of a TicTacToe program ive had a hard time desifering code not in a certain style.
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
