Gp2x-mancala V1.01


zx-81

Certified Guru
Joined
Apr 5, 2007
Messages
679
Age
53
Location
Earth
Website
zx81.zx81.free.fr
gp2xmancala-snap-v1.jpg


Hi All,

Mancala is a board game familly, originated in East Africa. The word "Mancala"
came from arabic word "naqalah" that means literaly "To move". GP2XMancala
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.

GP2XMancala is a port of my PSP version.

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.

you can download it here

Special thanks to all GP2X-SDK developpers, and to Julien who ported my PSP GnuGNO to GP2X
(source code was very helpful to port PSPMancala).

Enjoy,

Zx.
 
Back
Top