Question: CSC 2 1 0 Program 3 ( Course Project ) Zero to 1 0 0 ! In c + + Rules: - Game will consist
CSC
Program Course Project
Zero to
In c
Rules:
Game will consist of players User CPU and CPU
Each player starts with a score of zero and must capture spaces on the board to reach
Each turn a player will select new spaces on the board. These spaces are revealed and captured meaning they can no longer be selected.
The sum of the spaces captured are calculated and added to the player's score.
The first player to reach wins!
Board:
The board will start with all symbols which indicate available spaces.
Spaces captured should reveal the number at that space.
Numbers are assigned to each space on the board ranging from
Each round of player moves the board will display the sum, max, and spaces remaining using spaces not captured by a player. This will change after each round
The dimensions of the board will be determined based on the number of numbers provided in the text file. Examples A file with numbers should create a times board. A file with numbers should create a board. I recommend using at least a board for better testing Program should include the following:
Implement encapsulation, abstraction inheritance, and polymorphism.
Program must include the provided Board class.
All created classes must be in separate header and implementation files.
Documentation explaining how your program works.
Submit all h and cpp files with your code and comments. Players Standard Moves:
PlayerUser Player will capture spaces on the board via input.
Enter a row:
Enter a column:
Enter a row:
Enter a column:
Enter a row:
Enter a column:
PlayerCPU Player will capture spaces on the board randomly.
PlayerCPU Player will capture spaces on the board by selecting the earliest available spaces on the board.
For example: spaces labeled blue are captured by Player Spaces labeled gray were spaces already captured. Player will always select the earliest spaces available on the board and skip spaces already captured.
Bonus Points For Player Moves:
Players will receive bonus points based on the numbers captured each turn.
If a player captures duplicates of a number their total sum that turn is doubled
If a player captures numbers that increase or decrease in the order selected, their total sum that turn is doubled.
For example:
If the numbers in order captured are and this would be a sequence bonus.
If the numbers in order captured are and this would also be a sequence bonus.
If the numbers captured are and this would be a duplicate bonus.
Frank Numbers Selected:
Numbers Match!! Points x
CPUl Numbers Selected:
Numbers Decrease Sequentially!! Points x
CPU Numbers Selected:
No Bonus This Turn
Special Moves:
Each player will have a special ability to capture multiple spaces at once. Bonuses will not be applied when using a special.
Each player will have special for the game.
Each player will have the following specials:
Player Scatter, Precision, and Linear
Player Random Scatter
Will use their special if their score is less than mathbf
Player Random Precision
Will use their special if their score is greater than mathbf
Scatter:
Capture random locations on the board.
Precision:
Conquer positions on the board based on a starting location. The user will provide a location as the center point for the special. The special will conquer adjacent spaces based on a times area.
Random Precision will randomly select the center point as well as the area size. The random area size will also be times
Linear:
Conquer spaces using a horizontal, vertical, or diagonal strike.
The user will select a starting and ending point for the strike.
The special will capture up to spaces between the selected points.
In some situations, duplicate spaces will be selected but should be ignored.
If the path is less than spaces total, assume the entire path will be captured.
See video in Canvas for examples. Program should include the following:
Implement encapsulation, abstraction inheritance, and polymorphism.
Program must include the provided Board class.
All created classes must be in separate header and implementation files.
Documentation explaining how your program works.
Submit all h and cpp files with your code and comments.
#ifndef BOARDHINCLUDED
#define BOARDHINCLUDED
#include
#include
#include
using namespace std;
class Board
private:
D array board
int board;
D array used to indicate if a space has been selected during
the game
bool spaceSelected;
Used to store game numbers
vector numbers;
Number of rows for board
int rows;
Number of columns for board
int cols;
public:
Constructor
Initializes board dimensions and numbers
Boardstring fileName;
Display Game Banner
void displayGa
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
