Need someone to complete C++ code background: Pente Grammai is an ancient Greek board game, played with two opposing players and involves the rolling of dice (values 1-6) in order to traverse the board in a counter-clockwise manner. please view attached doc for more information
Title: Implementation of Pente Grammai in C++
Pente Grammai is an ancient Greek board game that has been played for centuries. It is a two-player game that involves the rolling of dice with values ranging from 1 to 6. The objective of the game is to traverse the board in a counter-clockwise manner, using the dice rolls to move the player’s pieces. In this assignment, we will be implementing the game of Pente Grammai using C++ programming language.
The Game Board:
The Pente Grammai game board consists of a circular track with cells numbered from 0 to 23. Each player has five pieces, which start at cell 0 and move in a counter-clockwise direction. The first player to move all their pieces to cell 23 wins the game.
To implement the game of Pente Grammai in C++, we will use a combination of classes, functions, and data structures. The main components of our implementation will include a Board class, a Player class, a Dice class, and a Game class.
The Board class will represent the game board and will have functions to initialize the board, display the current state of the board, and update the board based on player moves.
The Player class will represent each player and will have functions to handle their turn, move their pieces, and check if they have won the game.
The Dice class will simulate the rolling of dice and generate random values between 1 and 6. It will have a function to roll the dice and return the generated value.
The Game class will control the flow of the game and handle interactions between the board, players, and dice. It will have functions to start the game, take turns for each player, display the winner, and handle the overall game logic.
To ensure that the game is played correctly and follows the rules, we will include appropriate error checking and validation in our implementation. For example, we will check if a player’s move is valid in terms of the dice roll and the current state of the board. We will also handle cases where multiple players make moves simultaneously or if players try to move opponents’ pieces.
In conclusion, this assignment will involve implementing the game of Pente Grammai in C++ programming language. We will use classes, functions, and data structures to represent the game board, players, dice, and the overall game. Error checking and validation will be incorporated to ensure the game is played correctly. The final implementation will provide a playable version of Pente Grammai, allowing two players to compete against each other.