Sunday, October 14. 2012
Mancala is a board game familly, originated in East Africa. The word "Mancala" came from arabic word "naqalah" that means literaly "To move".
Android Mancala is the "Awari" variant, and even if the rule of this game is simple, the complexity can be compared to chess Game.
The AI is based on the source code of H. Huseby & G.T. Lines, for their implementation of the classical Minimax algorithm.
The touch screen is supported, and there is a two players mode.
How to use it ? Everything is in the README.txt file.
Sources are included, and this package is under the GNU public license, read COPYING.txt file for more information about it.
How to play ? Here is the rules available from awari.cs.vu.nl :
Awari is played on a board where each player owns 6 pits. In the initial position, all pits are filled with four stones, thus the initial position has 48 stones.
The player to move chooses one of its own, nonempty pits and removes all stones from the pit. The player then sows the stones, counterclockwise, over the remaining pits.
If the last stone is sown into an enemy pit that contains 2 or 3 stones after sowing, the stones are captured.
In this case, if the second last pit is also an enemy pit that contains 2 or 3 stones, they are captured as well, and this process is repeated clockwise, until the own pit, or an enemy pit containing less than 2 or more than 3 stones is reached.
The player who captures most stones, wins the game. The game end when a player cannot move, however, to avoid such a situation early in the game, it is not allowed to do a move that leaves the opponent without countermove, unless all moves eradicate the opponent.
Source code :