Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Incubator Q&A

Welcome to the staging ground for new communities! Each proposal has a description in the "Descriptions" category and a body of questions and answers in "Incubator Q&A". You can ask questions (and get answers, we hope!) right away, and start new proposals.

Are you here to participate in a specific proposal? Click on the proposal tag (with the dark outline) to see only posts about that proposal and not all of the others that are in progress. Tags are at the bottom of each post.

Alpha and Beta play a game with marbles Question

+3
−0

There are $100$ marbles in a bucket.

Alpha and Beta play a game in which they take turns removing marbles from the bucket with Alpha going first.

At each turn the player can choose to remove either $1, \ 2, \ 3 \ or \ 4$ marbles from the bucket.

Whoever empties the bucket wins the game.

Could either player have a winning strategy that would ensure that they win no matter how their opponent plays?


See also:

I posted a related puzzle here:

https://proposals.codidact.com/posts/296186

History

1 comment thread

Pedantry (2 comments)

1 answer

+3
−0
Solution

Beta can always win.

Solution logic

For a player X to win, there have to be 1-4 marbles left. For that to be forced, there need to be 5 marbles left before that for player Y.

You can keep working this backwards to how many marbles need to be left each turn for X to win. To guarantee 5 marbles left, there need to be 6-9 for player X, which means 10 marbles for player Y right before that. As we can see, for X to win, Y needs to be presented with a multiple of 5 marbles.

Since the game starts with 100 marbles, whoever starts loses if the other player always makes the optimum move.

Strategy spelled out Each turn, Beta must remove 5 minus the number of marbles that Alpha just removed.
History

0 comment threads

Sign up to answer this question »