Refresher on andys basic requirements

Assignment Help C/C++ Programming
Reference no: EM13307538

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: "<PLAYER>, <SPACE>, <RESULT>".

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.

Reference no: EM13307538

Questions Cloud

Determine the neutral axis angle given x and y deflection : determine the neutral axis angle given x and y deflection measurements and load applied (mm)
How fast is speeder going : A police car is moving at 38m/sec to catchup with a speeder directly ahead. The speed limit is 29.1 m/sec. How fast is speeder going
What gauge pressure must the pump provide : Water is being pumped through a horizontal pipe that is 37.8 m long and 14.5 cm in diameter. what gauge pressure must the pump provide to give the same volume flow rate as for the first pipe
Explain what are the right metrics of agility : What are the right metrics of agility. Are there systematic techniques to improve the agility of a system
Refresher on andys basic requirements : 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.
What change management initiatives should km group have : What change management initiatives should the KM group have initiated at Infosys before attempting to develop and implement knowledge management at the company?
Find the pressure considering both friction and minor losses : Water flows through a 200 m long ,30 cm diameter steel pipe with surface roughness 0.046 mm at a rate of 0.25 m^3/s .Find the pressure(P2)considering both friction and minor losses
Construct an e-r diagram for a car insurance company : Construct an E-R diagram for a car insurance company whose customers own one or more cars each. Each car has associated with it zero to any number of recoreded accidents.
Calculate the peak bending moment for the roof beam : Calculate the peak bending moment for the 4x10 roof beam. Then draw a clear dimensioned FBD for the two exterior bearing walls above the floor joists, no moment calcs here.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program that will be used to gather statistical data

Write a program that will be used to gather statistical data about the number of movies

  String converter

String Converter: Implement a program that asks the user to input up to 20 strings (stopping when the user inputs 0). Store these strings in a 2-dimensional array. Replace all the characters that are upper-cased to their lower-case equivalent.

  User that will be asked to input the time

Write a code for the following C++ problem. We will have a user that will be asked to input the time of a train traveling in terms of minutes and this minutes is a non-negative integer.

  Write application which ask user to input grades of students

Write C++ application which asks user to input grades for 5 student (3 grades each) save them in five double one dimensional arrays (one array for each student),

  Write a program that reads in a list of integer numbers and

Write a program that reads in a list of integer numbers and print out the sum of all numbers, the average, the lowest and the highest value entered. The first input number indicates how many numbers the program is attempting to read. For example, if ..

  Calculates different formulas that converge to the number pi

Write a C program (Care should be taken not to use extensions of C + + language in your work ) that calculates different formulas that converge to the number  pi,  to compare the speed of convergence of these formulas. Each form will be calculated by..

  Public data members and private data members.

Explain the difference between public data members and private data members. Give an example in the main function to show that one C++ statement is valid and the other is invalid (you can use Grade class in Problem 5.

  Create a graphical calculator with buttons

Create a graphical calculator with buttons that can add, subtract, multiply, divide, +/-, Sin, Cos, Tan, clear and Modulus and write a method for each of these calculations that will accept the needed incoming numbers and return the calculated value.

  Where s is any string

Write a function detab(s, stop), where s is any string, and stop is a positive integer called tabstop size. This function should return a string which is like s.

  This program will simulate the game of hearts

This program will simulate the game of Hearts, which is a four-player trick-taking game using any ordinary deck of playing cards. Each player is dealt thirteen cards. Whoever is dealt the Two of Clubs must lead it to the first trick. Each person p..

  Develop a simple poker game

Develop a simple poker game

  Evaluates the gross pay of a set of employees

Write a C program that will calculate the gross pay of a set of employees - determines both the overtime hours (anything over 40 hours) and the gross pay, and outputs

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd