Maricopa Community Colleges Mesa Community College Battleship Game in C++ Project Content Type
Maricopa Community Colleges Mesa Community College Battleship Game in C++ Project
Description
The rules are simple. The student must create a program that does the following:
1. Create the battleship playing board ( 10 rows represented by letters and 10 columns represented by numbers)
2. Create the battleship pieces and place them on the board in a random pattern (Ship pieces can only be in an vertical or horizontal pattern, can not be at an angle)
3. The ship pieces cannot overlap
4. Hits are represented with an X and misses are represented with a O
5. Game ends
a. Once all the ship pieces have been found
b.Once the user misses 15 times in a row
c. Uses the sentinel command ( -1 for example)
6. The board must be its own class
7. Each ship is its own instance of the class
8. All classes must be in separate files (header and