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 10x10 grid where each player(2 total) first choose where to place their battleships. battleships: 3 total(1: 1 total space, 1: 2 total spaces, 1: 3 total 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 wether the spaces are occupied by 'X','O', whatever needed to differentiate a space with a battleship or not.
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 desribes the purpose of the project and application, a description of how to use the program, and directions on how to compile the program)As 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.
By using the reference of a TicTacToe program ive

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!