Game battleship is back and better than ever instead of


Battleship Redux

The game Battleship is back and better than ever. Instead of hacking everything together in C, you will instead leverage C++ and all of your newly gained object oriented programming knowledge to construct a much cleaner end product. If you need a refresher on Andy's basic requirements, see this webpage.

Note that we will modify the assignment in the following manner:

Object oriented instead of procedural

Your program must use object oriented design principles. That means that you should use classes when appropriate. For example, use a basic Ship class and inheritance to represent all of the different ship sizes in the game. Also, it might be a good idea to use classes to represent the game board, players, and results.

Multiple game modes

Your game should allow for hotseat (player vs. player), player vs. computer, and computer vs. computer play. To that end, you must attempt to create a somewhat intelligent computer AI.

Output file format

Now that we know all about CSV files, you must convert your logfile to CSV format using the following columns: ", , ".

Header Comment, and Formatting

1. Be sure to modify the file header comment at the top of your script to indicate your name, student ID, completion time, and the names of any individuals that you collaborated with on the assignment.

2. Remember to follow the basic coding style guide. A basic list of rules can be found on OSBLE.

OSBIDE Reflection

- What was the most fun aspect of the assignment?

- What was the most challenging aspect of the assignment?

- What was the most difficult aspect of the assignment to understand?

- Do you have any suggestions for improving the assignment for future students?

- Would you like to share any general thoughts regarding the assignment?

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Game battleship is back and better than ever instead of
Reference No:- TGS0644926

Now Priced at $40 (50% Discount)

Recommended (94%)

Rated (4.6/5)