Angular frontend for a game application, providing user interface and interactions, utilizing the API from the backend to update game state and receive user inputs, featuring forms and components.
Each of the two players has six pits in front of them. To the right of the six pits, each player has a larger pit. At the start of the game, there are six stones in each of the six round pits.
The player who begins with the first move picks up all the stones in any of his own six pits, and sows the stones on to the right, one in each of the following pits, including his own big pit. No stones are put in the opponents’ big pit. If the player’s last stone lands in his own big pit, he gets another turn. This can be repeated several times before it’s the other player’s turn.
During the game the pits are emptied on both sides. Always when the last stone lands in an own empty pit, the player captures his own stone and all stones in the opposite pit (the other player’s pit) and puts them in his own (big or little?) pit.
The game is over as soon as one of the sides runs out of stones. The player who still has stones in his pits keeps them and puts them in his big pit. The winner of the game is the player who has the most stones in his big pit.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
The backend code for this project is located in https://github.com/hamidfarmani/mancala
repository.