This AI engine developed using CPP with minor QT library function which will be easily replaceable using standard CPP function.

This Engine takes complete Mancala board as input string in this format.

Format : pit-numberOfStone

0-4,1-4,2-4,3-4,4-4,5-4,6-0,7-4,8-4,9-4,10-4,11-4,12-4,13-0

Pits are arranged like that.

12 11 10 9 8 7
13 6
0 1 2 3 4 5

so the format is pit number - number of stone in that pit,

Every time send the current board in string format using initialize() function.

generateBestMove() function used to calculate the best move based in current position in the board.

findBestMove() returns the best pit position which will create most point for the AI player.

Enjoy ...

Project Activity

See All Activity >

Follow AI Engine for Mancala

AI Engine for Mancala Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of AI Engine for Mancala!

Additional Project Details

Registered

2011-11-22