a game -- splitting piles of stones
- From: quasi <quasi@xxxxxxxx>
- Date: Sat, 10 Dec 2005 23:31:56 -0500
Given an initial pile of n stones.
2 players alternate turns.
At each turn, the player must choose one of the remaining piles of
stones and split it into 2 or 3 piles (not necessarily of equal size).
Since stones are not breakable, any pile of size 1 can't be split, and
hence survives intact for the rest of the game. If there are no piles
that can be split, the player whose turn it is loses.
For which values of n is the game a win for player 1?
For those values of n, specify an optimal strategy.
The game has a very simple solution, but I'll let people play.
I made up the above game by generalizing a game I found in a text
designed for a math enrichment course for liberal arts students. The
game in the textbook was the same except the player is required to
split a pile into exactly 2 piles. The requirement to split a pile
into exactly 2 piles makes the game trivial, so I revised it in order
to make it harder.
In my revised game, I expected that it might need some programming to
identify the optimal strategies. In fact, that was part of my goal --
to create a game which was not immediately obvious and such that
solving the game would make for a fun programming problem.
As it turns out, I couldn't solve it myself when I first tried it. I
couldn't even come up with a nice algorithm so that I could write a
program to solve it.
Having no algorithm, I was forced to abandon the idea of a computer
solution and so I struggled with it theoretically until, all of
sudden, a key idea hit me. Based on that insight, the solution was
immediate, and the form of the solution is actually quite nice.
It still bothers me that I wasn't able to formalize the search for a
solution in terms of a simple algorithm, but I guess it's just another
example of where human insight is superior to the power of a computer.
quasi
.
- Follow-Ups:
- Re: a game -- splitting piles of stones
- From: Robert Israel
- Re: a game -- splitting piles of stones
- Prev by Date: Re: Continuum hypothesis
- Next by Date: Re: Are the following set operations true?
- Previous by thread: Are the following set operations true?
- Next by thread: Re: a game -- splitting piles of stones
- Index(es):
Relevant Pages
|