A.I.ware

Copyright P. Baillehache , 2017, Statistics, Documentation.
- Rules -
The game of Oware is a game among the Mancala family board games. It has many variants and many names as it has been played all around the world since hundreds of years. A.I.ware is an online version of this game where the human player can play against an artifical intelligence. The rules and how to play are explained below.
The game is played between two players (the Human and the A.I.) with a board and 48 stones. The board has 12 holes divided into 2 lines. The 6 holes on the top line are the A.I. territory. The 6 holes on the bottom line are the Human territory.
To start a new game, select the level of the A.I. (beginner, easy, intermediate, strong) and click "Start a new game". The 48 stones are distributed into the 12 holes, 4 stones per hole.
Players play one at a time. The current player turn is displayed below the board. The current player choose one hole containing stones in its territory. Stones in the choosen hole are moved in the following holes, one stone per hole, in a counter clockwise order. To select a hole, click on it and it will display below the board the number of stones inside. To play this hole, click on it a second time.

When the last moved stone arrives in a hole where there is already 1 or 2 stones, the current player captures all the stones in this hole (2 or 3 with the moved stone). Then, if the previous hole contains 2 or 3 stones, they are captured too and so on until we reach a hole with a number of stones different from 2 or 3 or go out of the current player's territory.


If the current player chooses a hole with more than 11 stones, the distibution of stones will loop back to the starting hole. In this case the starting hole is jumped over and the distribution continue with its neighbour.

The game ends when one player has captured at least half of the stones (25 stones or more). The winner is the player who has captured the more stones.
Special case 1. If the current player has no more stone in its territory, the opponent automatically captures all the stones in its own territory and the game ends.
Special case 2. If the current players captures at once all the stones in the opponent's territory, he immediately looses the game.