Question: problems below for extra credit. See 1437 Grading Guide Sheet for Extra Credit: Implement the grading/submission information. Partial credit will be given 1. Write a

 problems below for extra credit. See 1437 Grading Guide Sheet for
Extra Credit: Implement the grading/submission information. Partial credit will be given 1.

problems below for extra credit. See 1437 Grading Guide Sheet for Extra Credit: Implement the grading/submission information. Partial credit will be given 1. Write a C+ program to play the game of Three Musketeers-human against computer https//en.wikipedia.org/wiki/Three Musketeers %28game%29 The human should be able to choose which side to play: The Musketeers or Cardinal Richelieu's men. Once chosen, the human plays the same side for the entire game. The players take turns moving one piece; the musketeer player starts. The rules are as follows: The musketeer player can move a musketeer to any orthogonally (non-diagonal) adjacent space occupied by an enemy; the enemy piece is removed from the game. The enemy can move one enemy piece to any orthogonally adjacent emptyspace. . . The enemy wins ifit can force the three musketeers to be all on the same row or column. The musketeers win if on their turn they cannot move due to there being no enemy pieces adjacent to any musketeer and they are not all on the same row or column. As long as one musketeer can move, the game is not won. or human-the program should print out the new game board. This could be just a display of the pieces, or it could be a display with rows and columns labeled like this: ABCDE 1IRRR RM 2IRRRRR 3IRRMR R 4IRRRRR 5IMR RR R In addition, after each move, you should print a message telling what piece moved where. Don't make the user compare two game boards to figure out what just happened. Implement a way for the human to enter moves. When the program is run, it must explain how to enter moves; do this once, when the game is first started. The easier it is to use your program, the more fun it will be to play. Of course, the computer should prevent the human from making llegal moves. It should also tell when the game is over, and who won Implementation: This program will be less structured than previous problems. Some classes that will be needed are specified and additional classes can be used. It is up to the student to figure out what the responsibilities (methods) of each class will be. The required classes are: Musketeer (object)-to represent the entire game. Creating a Musketeer object should start the game. .Player (object)-to represent a single player. Also, no object should directly examine or alter the variables of any other object; all access should be done by talking to (calling methods of) the other object. The student should figure out what the various

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!