What is Mancala?

Mancala is one of the oldest known board games in the world, with origins dating back thousands of years across Africa and Asia. Archaeological evidence suggests versions of the game were played as early as the 6th century, making it one of humanity's most enduring pastimes. The name "mancala" comes from the Arabic word naqala, meaning "to move."

The game is played on a board with two rows of six small pits and a large store (called a mancala) at each end. Players take turns picking up seeds and distributing them around the board, aiming to collect as many as possible. PlayVersusAI uses Kalah rules — the most popular Western variant — making it easy to learn yet deeply strategic.

Rules of the Game

The board begins with 4 seeds in each of the 12 pits (48 seeds total). On PlayVersusAI, you play the bottom row and your store is on the right side.

How to Move

On your turn, pick up all the seeds from one of your six pits. Moving counter-clockwise, drop one seed into each subsequent pit — including your own store — but skip the opponent's store. Continue around the board until all seeds are placed.

Extra Turns

If the last seed you drop lands in your own store, you earn another turn immediately. Chaining multiple extra turns in a row is one of the most powerful tactics in the game.

Capturing Seeds

If the last seed you drop lands in an empty pit on your side of the board, you capture that seed along with all seeds in the directly opposite pit on the opponent's side. Both groups are placed into your store.

Ending the Game

The game ends when one player's six pits are all empty. The opposing player collects all remaining seeds on their side into their store. The player with the most seeds in their store wins. If both players have 24 seeds, the game is a draw.

Key Strategies

Chain Extra Turns

The extra turn rule is the most powerful mechanic in Mancala. In the early game, look for pits where the seed count will land exactly in your store. Chaining two or three extra turns in a row gives you a massive tempo advantage and lets you set up the board while your opponent waits.

Set Up Captures

Strategically empty pits on your side to create capture traps. When the opponent builds up a large pile across from your empty pit, a well-timed move can swing the game in your favor. The best captures come from patient setup — leave a pit empty and funnel seeds toward it.

Endgame Counting

In the late game, count seeds carefully. Sometimes it's better to feed seeds to the opponent's side to keep the game going — especially when you're ahead and can collect more through extra turns. Avoid leaving too many seeds on your side, as they become vulnerable to captures or get swept into the opponent's store when the game ends.

The Rightmost Pit Trick

Your rightmost pit (pit 6, closest to your store) always grants an extra turn when it contains exactly 1 seed, since that seed drops directly into your store. Keep this in mind as a free turn whenever it's available.

How Our AI Works

The Mancala AI on PlayVersusAI uses the minimax algorithm with alpha-beta pruning — the same family of algorithms used in competitive chess engines. The AI evaluates every possible sequence of moves up to a certain depth, then picks the path that maximizes its advantage while minimizing yours.

Position evaluation considers several factors: the difference in store seed counts, potential capture opportunities, extra turn chains, and control of the board. At higher difficulty levels, the AI uses iterative deepening with a 2-second time limit, allowing it to search as deep as possible within that window for near-perfect play.

Difficulty Levels

Choose a difficulty that matches your skill level. Each level adjusts how far ahead the AI looks and how often it makes suboptimal moves.

2 ply

Easy

Looks 2 moves ahead with a 25% chance of playing a random move. Great for learning the basics.

5 ply

Medium

Looks 5 moves ahead with an 8% random rate. A solid challenge for intermediate players.

10 ply

Hard

Searches 10 levels deep with perfect play. Punishes mistakes ruthlessly — only for the skilled.

Max depth

AI Training

Iterative deepening with a 2-second time limit. Explores as deep as possible for near-optimal play.

Tips for Beginners

  • Always take free extra turns. If a move lands your last seed in your store, take it — even if the alternative looks tempting. Extra turns compound your advantage.
  • Count seeds before moving. Before picking up a pit, count the seeds and trace where they'll land. This prevents accidental gifts to your opponent.
  • Protect your big pits. A pit with many seeds is both an asset and a liability. It can fuel powerful moves, but it's also a target for captures if the opposite pit empties.
  • Set up captures early. Empty a pit or two on your side and wait for the opponent to build up across from them. Patience pays off.
  • Watch the opponent. Pay attention to which of their pits are empty — those are potential capture threats against your seeds.

Common Mistakes

Ignoring Extra Turns

Passing up a free turn is almost always wrong. Extra turns let you act twice while your opponent watches — the tempo swing is enormous.

Leaving Pits Exposed

Piling seeds into one pit while the opposite pit is empty invites a devastating capture. Spread your seeds and stay aware of threats.

Not Counting Seeds

Moving impulsively without counting often sends seeds past your store or into the opponent's strong pits. Always trace the path first.

Emptying Your Side Too Fast

Playing too aggressively can clear your side, ending the game prematurely and handing remaining seeds to your opponent's store.

Ready to Play?

Put your strategy to the test against our AI — from beginner-friendly to brutally competitive.

Play Mancala Now