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

  C program to mips program

Convert the following C program to MIPS program. Assuming that i, j, k, f, are stored in registers $s0, $s1, $s2, $s3 already.

  Program that asks the user to enter the monthly costs

write a program that asks the user to enter the monthly costs for the following expenses incurred from operating his or her automobile:

  Write a function that accepts an int array

The task calls for: Write a function that accepts an int array and the array's size as arguments. The function should create a copy of the array, except that the element values should be reversed in the copy. The function should return a pointer t..

  Sort an array of elements using the quick sort algorithm

Sort an array of 10,000 elements using the quick sort algorithm as follows: sort the array using pivot as the middle element of the array

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Program that can serve as a simple calculator

Write a program that can serve as a simple calculator. This calculator keeps track of a single number (of type double) that is called result and that starts out as 0.0. Each cycle allows the user to repeatedly add, subtract, multiply, or divide by..

  Design a simple atm service kiosk

Design a simple ATM service kiosk. This kiosk supports the following options for its menu: 1. Viewing your account balance2. Depositing cash3. Withdrawing cash

  Write a menu driven program for an online beef

Write a menu driven program for an online beef distribution company. There are 8 different

  Write a method named negative sum

Write a method named negativeSum that accepts a Scanner as a parameter reading input from a file containing a series of integers, and determine whether the sum starting from the first number is ever negative

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

  Represent an instruction supported by simpletron

Implementation contains a Simpletron class and several supporting Instruction classes

  . write a segment of code that prints the number of elements

Assuming the array x has been defined as: int x[n]; for some n and that values have been assigned to all the elements. Write a segment of code that prints the number of elements between (but not including) the largest and smallest values in the array..

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