c++
(1) Create a class, named Board, containing at least one data member (two-dimensional array) to store game states and at least two member functions for adding players’ moves and printing the game board. Write a driver to test your class.
(2). The data type of the two-dimensional array can be either int or char. As a passlevel program, the size of the board can be hardcoded to 10 or a constant with a pre-set value, anything between 4 and 20
(3). Set the initial state of the board as follows: assuming the size of the board is m*m, the initial position of red player is at (2, 2) and the blue player is at (m-1, m-1) as shown below (where m=5).
| | | | | |
| | R | | | |
| | | | | |
| | | | B | |
| | | | | |
(4). program should be able to accept human players’ moves. The format of input can be a pair of characters from ‘U’, ‘D’, ‘L’ and ‘R’. For instance, (U, L) means that the red player plays “up” and the blue player players “left”.
(5). program should be able to check if a move terminates the game (either a player crashes or two players collide). If a move does not terminate the game, the board state should be updated in accordance with the move.
(6). program should redisplay board state after each legal move. The layout of display must be text-based, similar to the following, where ‘R’ stands for red player, ‘B’ for blue player and ‘O’ for visited cells.
| | O | | | |
| | R | O | | |
| | | | | |
| | | | B | O |
| | | | O | |
7. Take an input from the user to set the size of the board. For
easy display, you can
place a restriction on the board size to 4 - 20. The size should be
passed to the board class
via its constructor.
(8). Since the dynamic array needed is two-dimensional, you
might have to declare a
pointer of pointers of either int or char to point to the
array.
I have implemented till task 6, i need help with 7 & 8.
In: Computer Science
CHOOSE ONE of the political parties to write on: either the Federalists OR theRepublicans. Choose whichever party interests you, or choose a party that you don’t know much about. Once you choose your party, you will assume the role of a member from that party – pretend that you are either a Federalist or Republican from the 1790s.
write a minimum of three paragraphs
discussing the political, economic, and diplomatic views of your
political party . Your political
views will include your perspective on state and national
government (how strong or weak should they be);
your economic views will include your perspective
on economic directions that the nations should take (or not take);
your diplomatic viewswill include your perspective on
France and England (which nation do you support? why?).
- If you are a Federalist, you will explain what
the Alien and Sedition Acts are and give examples
from the Acts that you think are necessary to support your position
(ex: what parts of the Alien Acts are necessary for the survival of
the United States?).
-If you are a Republican, you will explain what
theKentucky Resolutions are and give examples from the
Resolutions that you think are necessary to support your position
(ex: what role should states play when the national government
oversteps its authority?).
In: Economics
Monica's reading comprehension score = 102, Mean 4th reading comprehension score = 109 standard deviation of the 4th grade's reading comprehension = 2.8 Monica's z-score in math = 1.3 Mean 4th grade math score= 218 Standard deviation of the 4th grades scores = 12.2 State the dependent variable. Explain whether Lucy should use a one-tailed or a two-tailed z-test and explain why. Calculate the obtained z-score by hand. Describe your calculations (i.e., show your work).
In: Statistics and Probability
PhoP-PhoQ two-component regulatory system
Explain the purpose of this system (what is it responding to and why) as well as the biological process in which it is involved using as much detail as you are able.
In: Biology
In: Economics
In: Economics
What would the experience of the world be like without iconic memory? How would its absence make life difficult? Explain in detail and give examples in 150 words or more.
In: Psychology
What were Patterson's three different tests for morphological homology? Define parallelism, serial homology, and convergence and in detail and explain how Patterson's tests distinguish homology from them?
In: Biology
When an economy is open up for more trade are there workers that are affected negatively? If so then what government policies might be enacted? Please explain in detail with any reference or citations. Thanks
In: Economics
In this unit, you were introduced to various kinds of software, particularly databases. Databases have made it possible to gather and analyze vast amounts of data. The study of that data has led to some surprises, such as the real favorite flavor of pie for most people—it’s not what you might think!
Watch the video Big Data Is Better Data. After you finish watching the video, answer the following questions:
Choose one of these topics and research it by reading two articles about it. Here are three sources to use to begin your research:
Tween Tribune
Newsela
Channel One News
If you are having a difficult time finding what you want, try searching for “data privacy,” “data breach,” “automation and jobs,” “crime and technology,” or “robots and jobs.”
Include the following in your answer to the question you choose:
In: Computer Science