What are the rules of Mancala?
Mancala is a very simple, easy-to-learn game. Each player begins with a vertical row of holes or pits filled with a certain number of stones. At either end of the board are the players' home pits, which are used to keep score. (In this case, the human player has the left row and the bottom home pit.) A move is made by typing the number corresponding to the hole you wish to move from. The stones are then picked up and distributed, one to each hole, moving downward until your home pit is reached, and then moving upwards through your opponent's row, bypassing his/her home, and moving back downwards in a circle, until all the stones have been distributed.
If the last stone is placed in your home, you receive an extra turn. If the last stone lands in an empty hole on your side, you 'capture' the stones in the opposite hole on your opponent's side, moving them to your home.
The game ends when one player cannot play (ie. there are no stones on his/her side of the board. The player who has the most stones on his/her *side* wins.Where can I get the source code for this Mancala implementation?