File Exchange

image thumbnail

Mancala

version 1.0.0.0 (2.36 KB) by Suleman Shafqat
Mancala is an ancient family of board games, also known as Kalah.

1 Download

Updated 30 May 2012

View License

The Mancala 'board' is made up of two rows of six holes, or pits, each. If you don't have a Mancala board handy, an empty egg carton is perfect.
Three pieces -- marbles or stones -- are placed in each of the 12 holes. The color of the pieces is irrelevant.
Each player has a 'store' to the right side of the Mancala board. Cereal bowls work well. for this purpose.
The game begins with one player picking up all of the pieces in any one of the holes on his side.
Moving counter-clockwise, the player deposits one of the stones in each hole until the stones run out.
If you run into your own store, deposit one piece in it. If you run into your opponent's store, skip it.
If the last piece you drop is in your own store, you get a free turn.
If the last piece you drop is in an empty hole on your side, you capture that piece and any pieces in the hole directly opposite.
Always place all captured pieces in your store.
The game ends when all six spaces on one side of the Mancala board are empty.
The player who still has pieces on his side of the board when the game ends captures all of those pieces.
Count all the pieces in each store. The winner is the player with the most pieces.
Tips:
Planning ahead is essential to victory in board games like Mancala. Try to plan two or three moves into the future.

Rules and tips from :
http://boardgames.about.com/cs/mancala/ht/play_mancala.htm

Cite As

Suleman Shafqat (2021). Mancala (https://www.mathworks.com/matlabcentral/fileexchange/36925-mancala), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Suleman Shafqat

thanks Braden.... you made my day by this comment.... :)

Braden

Very efficient coding. Thanks for writing this!

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!