Debian Codegraph @

RULES

raw
1 Note that there are lots of different rule sets for Mancala. Our
2 implementation uses this one:
3
4 Setup: The board consists of 2 rows of 6 bins and 2 mancalas. Each
5 player is allocated the row of bins closest to him and the mancala
6 to his right. Initially each bin contains 4 stones, and the
7 mancalas are empty.
8
9 Object: The object of the game is to place as many stones as possible
10 in one's mancala before the game ends. This happens when a player,
11 at his turn, has no legal moves, meaning that all his holes are
12 empty. The other player then gets to put any remaining stones on
13 his side into his mancala.
14
15 Moving: At his turn, the player picks up all the stones in any of his
16 non-empty bins and starts to sow them by placing one in each of the
17 preceding bins, starting with the one on the right and continuing
18 counterclockwise around the board, skipping the oponents mancala
19 (but not his own).
20
21 Extra move: If the last stone is sown in one's mancala, one gets to
22 move again.
23
24 Capturing: If the last stone is sown in an empty bin belonging to the
25 player, he captures all the stones lying in the bin directly across
26 this bin. These stones and the capturing stone are then placed in
27 the mancala. If the bin directly across is empty, nothing special
28 happens.