Consider the following variant of Mancala:
We have a board like the one below, which starts off with four stones in each hole (and none in the longer troughs at the ends).
The game has 2 players, who stand on opposite sides of the board. That is, one player "possesses" the 6 holes that lie in a line on one side of the board, and the other player "possesses" the other 6 holes on the other side. Also, the players each possess the long trough which is to their right. That is, if the player moves counterclockwise around the board starting from her side, then the first trough she encounters is her trough.
The players take turns picking up all the stones from any hole (on either side), and then moving counterclockwise around the board dropping one stone from the pile they picked up into each hole or trough they pass. (If a hole is empty, obviously they can't use it to pick up stones and so have to pick up from a nonempty hole.)
If the last stone from the pile a player picked up is dropped in a hole containing stones (on either side of the board), then the player picks up all the stones in that hole (including the one they just deposited) and continues to drop those stones counterclockwise. During her turn, the player keeps doing this until the final stone from the last pile she picked up lands in an empty hole or in the other player's trough. If that happens, her turn ends.
Additionally, if on a turn the last stone a player drops lands in her trough, then she can go again. That is, she can immediately choose another hole (on either side) to pick up stones from and deposit it them in the counterclockwise direction. She does not pick up all the stones in the trough . Essentially, if a player places her last stone into her trough, the other player's turn is skipped and she gets to go again.
The players continue this process until all the stones are in the troughs. Then the player whose trough has the most stones in it wins.
Call the player who starts player A, and the other player B.
Can player A always win regardless of what player B does? Assume player A plays intelligently and tries to guarantee that she wins.
Bonus: What if we generalized this game to having n holes on each side? For which n, if any, would player A be guaranteed to win? (I have not thought about this ...)
Source: A friend taught me this game. She probably got this from somebody else (i.e., this game may be well known).
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The answer is Yes.
Hint : Find a sequence of moves player A makes, with each moving ending with a stone landing in her trough, so that she ends up placing more than half the stones in her trough. This way by the time player A puts more than half the stones in her trough, player B would never have even had a turn.
Can we generalize this argument to a board with n holes on each side? If not, for which n will this work? (I have not thought about this ...) Maybe someone will want to make a computer program which, for a given value of n, finds such a sequence (or exhausts all possibilities and thus shows it doesn't exist). Maybe there will be a pattern in the n's.
We could also try to increase the number of players in this game. For example, the board could be triangular for three players.
Edit: Below is some java code that finds such a sequence for a game with N holes per side and K>1 stones starting in each hole. For the cases I tested, it seems that such a sequence usually exists for any N and K>1, except if N = K. However, there are definitely other cases where such a sequence does not exists, for example: (N,K) = (24,48),(25, 50),(25,51),(25,52) but not (25,53).
The process seems quite complicated. Maybe a different way to look at it is this:
Consider a board with N,K given. Consider any distribution of the stones on the board. We can ask 2 questions:
1) Can we reach this board by a sequence of moves (only involving player A) from the starting board state?
2) Can player A win from this board state (with a sequence of moves only involving player A)?
Anybody have any ideas?
...
public class Mancala {
}
...