• Announcements

    • Cap'n Refsmmat

      SFN Upgraded   07/22/17

      SFN has been upgraded to IPB version 4. View the announcement for more details, or to report any problems you're experiencing. Note: search features, unread content, and so on won't work correctly until posts are reindexed, which should happen soon.
lancelot

Solving the matchstick game

5 posts in this topic

I saw this game played first in the classic 1960's French film 'Last Year in Marienbad'. I learnt how to play it to always win, by trial and error. I believe there is also a simple maths algorithm for winning play but I have neither the skill nor patience to figure it out. Can anyone help?

The game:

For two players. Lay four rows of mathsticks: 1, 3, 5, 7.

I
III
IIIII
IIIIIII

The play: A player can take any number of sticks from any one row at a time. The one who has to take the last match loses.

Its always fun to play this a few times and let the patsy win, then offer to bet a couple of beers that you can win the next three games straight out. When he loses, offer double or quits. Eventually he twigs and you both enjoy the beers!
0

Share this post


Link to post
Share on other sites
I think the game's generally called nim and the trick for always winning is based on parity.
0

Share this post


Link to post
Share on other sites
[quote name='John Cuthber']I think the game's generally called nim and the trick for always winning is based on parity.[/QUOTE]

Nope, it is not based on parity, there is no trick, as any player can choose the move. It's mathematics.

If anyone wants, we could play a few times right here on the forum. If you want to make it more interesting, we could do a 1 - 3 - 5 - 7 - 9 instead of 1 - 3 - 5 - 7

The simple way ? OK:

I
III
IIIII
IIIIIII

(Just write the next 'matches' pattern on the response)
Miguel Edited by Externet
0

Share this post


Link to post
Share on other sites
The game isn't the same as nim, although the trick is the more or less the same. Edited by the tree
0

Share this post


Link to post
Share on other sites
As far as I can see the game is the same as the one here.
[url]http://www.dgp.toronto.edu/~ajr/270/probsess/03/strategy.html[/url]
except for a reversal of the object (ie the last stick wins vs the last stick looses.
The strategy given is based on parity.
There are lots of variations on the basic game and lots of them get called nim.
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now