Question: I have this assignment that i need to do in c++, can anyone tell me how to do it, I'm new to this. This game

I have this assignment that i need to do in c++, can anyone tell me how to do it, I'm new to this.

This game is very similar to the popular Battleship board game. The game starts with each of two players placing 5 boats on their own 10x10 grid. Each boat must be placed either vertically or horizontally on a grid and no boat can overlap another. The boats lengths and point values are as follows: Carrier 5 units long, 1 unit wide, 1 point Battleship 4 units long, 1 unit wide, 2 points Frigate 3 units long, 1 unit wide, 3 points Submarine 3 units long, 1 unit wide, 4 points Minesweeper 2 units long, 1 unit wide, 5 points After both grids have five boats positioned on them, each player, starting with the first, takes turns guessing where the opponents ships are on their grid. If the guessed coordinates of the opponents ship is correct, a hit is scored. Only when every piece of a ship has been hit will it be considered sunk. The game ends after an undetermined number of turns are taken. The player with the most points wins the game. Points are rewarded only for sunk ships. If the number of points is equal, the player with the most hits wins. If both players have the same number of points and hits, the game is a true tie and there is no winner (regardless of total ships sunk). A few things to keep in mind are: 1. Graphics (nothing fancy) can be added to make a good UI. 2. File handling (i.e. reading the initial position of the ships, the sequence of the guessed coordinates etc.) can be added to the project as an added bonus.

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 Databases Questions!