Question
6 MEN'S MORRIS C++ PROGRAM! I need help ASAP! I need coding a 6 men's morris game for 2 human players. I need to do
6 MEN'S MORRIS C++ PROGRAM! I need help ASAP!
I need coding a 6 men's morris game for 2 human players. I need to do this by implementing 3 ADTS: one for the player, one for the game board, and one for the posiiton. The only thing I have so far is the code for the board:
void printBoard(char board[]) { cout << endl<
A small description of the game is included below:
Background: The board game Six Mens Morris is a two person strategy game that dates back to before 1400 B.C. The board is made up of two concentric squares containing 16 positions connected by lines. Each player gets 6 red or 6 black pieces. The game has two phases. In the first phase, players take turns laying a piece down on a vacant point. If a player creates a string of three of their pieces on one line, they immediately remove one of the opponents pieces. The piece removed must be within 2 positions of the one just placed. If red player just completed a string by placing a piece in position 1, while positions 14 and 7 already contained red pieces, then red player could remove a black piece from positions up to 2 spaces away. So they would be able to remove a black piece in positions 2,3,5,7,8, or 14.
In the second phase, the players have run out of pieces to play on the board. Instead of laying a piece down the player moves one of their pieces already on the board. Movement must be from one position to another position that is connected by a line. A piece can only move to an empty position that is one link away. To win, a player must block their opponent from being able to make any moves or take all but two of the opponents pieces.
Please help!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started