This game is played at a bar sometimes. (By those patrons who lost all hope of picking up a date.)
Coins are arranged in 3 rows as following:
First row -- 3 coins;
Second row -- 5 coins;
Third row -- 7 coins.
Two players take turns to make their move. On your turn you must take any number of coins (more than zero) from one and only one row. Player who takes the last coin -- loses, and must buy the winner a drink.
I. Find the strategy forcing your win, if you move first.
II. For N rows (N >= 2), any number of coins in each row, find the formula for the winning strategy.
Or, to put it differently, find the formula for the winning (or losing) position on your move.
Computer programmers, jump in! I don't mean solving this problem by writing a program. Rather using relevant knowledge. Especially, for the part II.
Question
Prime
This game is played at a bar sometimes. (By those patrons who lost all hope of picking up a date.)
Coins are arranged in 3 rows as following:
First row -- 3 coins;
Second row -- 5 coins;
Third row -- 7 coins.
Two players take turns to make their move. On your turn you must take any number of coins (more than zero) from one and only one row. Player who takes the last coin -- loses, and must buy the winner a drink.
I. Find the strategy forcing your win, if you move first.
II. For N rows (N >= 2), any number of coins in each row, find the formula for the winning strategy.
Or, to put it differently, find the formula for the winning (or losing) position on your move.
Link to comment
Share on other sites
34 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.