Options
Play Mancala (Kalah) Online vs the Computer
Play the classic game of Mancala — in its standard Kalah rules — directly against the computer, free, in your browser, with no download and no sign-up. You play the bottom row of pits with your store on the right; the AI plays the top row. Click one of your pits to scoop up its stones and sow them counter-clockwise. This is a single-player game built around an honest AI opponent: Beginner makes mistakes you can punish, Medium plays a solid game, and Hard runs an extremely strong search engine that plans free-turn chains and captures many moves ahead. Your legal moves are highlighted, and you get a move hint, undo and per-difficulty score tracking in your browser.
How the AI thinks
The opponent here is unusual among board-game engines because in Mancala the player to move does not reliably alternate. Landing your last stone in your own store grants a free turn, so one “turn” can be a chain of five or six sowings by the same side — the search tree branches on turn order itself, not just on move choice. The engine folds that into negamax with alpha-beta pruning, evaluating stones banked, stones still in play, and the capture threats each sowing leaves behind.
How to play Mancala — the rules
- The board. Each player has six small pits and one large store. Your store is the one on your right. Every pit starts with four stones.
- Sowing. On your turn, pick up all the stones in one of your own pits and drop them one at a time into the following pits, moving counter-clockwise. You drop a stone in your own store as you pass it, but you skip your opponent's store.
- Free turn. If your last stone lands in your own store, you take another turn straight away. Clever players chain several free turns together.
- Capture. If your last stone lands in an empty pit on your own side, you capture that stone and all the stones in the pit directly opposite, and put them in your store.
- Ending. The game ends as soon as one player has no stones left in their pits. The other player sweeps all their remaining stones into their store, and whoever has the most stones wins.
- Hint and undo. Hint asks the engine for a strong move; Undo takes back your last move.
Tips to beat the AI
- Hunt for free turns. Any pit whose stone count is exactly the distance to your store lets you move again. Stringing free turns together at the start can bank a big early lead.
- Set up captures. Landing your last stone in one of your own empty pits steals the whole pit opposite. Keeping a pit empty and waiting for the opposite one to fill is a classic trap.
- Watch the AI's captures. If the AI has an empty pit, the stones in your pit opposite it are in danger — sometimes it is worth emptying that pit before it can strike.
- Hoard on your own side late. When a side is close to empty, remember that whoever runs out first hands their remaining stones to the opponent — timing the finish matters.
Want to go deeper? Read our guide on how to analyze a Mancala position with a free online analyzer — or the same for chess, checkers, Othello, and backgammon.
FAQ
Can I play Mancala online against the computer?
Yes — this page is Mancala (in its standard Kalah rules) played directly against the computer in your browser. There is nothing to download and no account to create: pick a difficulty, choose who goes first, and click one of your pits to sow its stones. It works on desktop and mobile.
Is Mancala the same as Kalah?
Mancala is really a whole family of ancient sowing games. Kalah is the specific version most people in the West mean by 'Mancala' — six pits per side, four stones each, an extra turn for landing in your store, and captures from empty pits. This page uses those standard Kalah rules.
How strong is the Mancala AI?
The Mancala AI's strength depends on the level you pick. Beginner deliberately plays some random moves. Medium plays a solid game. Hard runs a negamax search engine with alpha-beta pruning that plans free-turn chains and captures many moves ahead, thinking about a second per move. It is extremely strong, though we do not claim it plays perfectly. Read how the Mancala AI works →
What is the best first move in Mancala?
In standard Kalah, opening with the pit that lands your last stone exactly in your store gives you an immediate free turn — from the starting position that is the third pit from your store. Chaining free turns early is one of the strongest ideas in the game, and the Hard AI does exactly this. A deeper search turns that small early edge into a lasting lead as the game goes on.
Is AI Mancala free, and does it work offline?
AI Mancala is completely free, with no download and no sign-up. The game and the AI engine run entirely client-side in your browser, so once the page has loaded it keeps working even without a connection. Your win/loss record is stored locally in your browser. More AI games: AI Checkers, AI Othello, AI Connect 4, AI Chess or all games.
More AI games on LK Forge
You win!
You banked more stones.