Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEAReally enjoyed this one!
I created an app that allows you to select in which slot the ball would drop in the first row and how many rows the Plinko machine has; subject to that, the app will return you the probability of the ball ending up in each of the 5 holes (or 6 in case the total number of rows is even) .
Output
Workflow
Iterative Macro
Really a challenge to set up a start. My solution:
Would have loved to be able to solve for this with an elegant formulaic approach, but after looking into Pascal's triangle I couldn't work out how to account for the sides of the Plinko board.
My solution.
I took the way of simulation at each step.
If the holes are six, I overwrite the hole Number to restrict the range.
Batch Macro:
Iterative Macro:
Result:
This is one of the most tough challenges.
I peeked at others' solutions before trying this on my own, and liked LordNeilLord's approach. So I tried to repeat his approach. The first two rows of my results are different than his, and I can't figure out why. Spending 1+ hours trying to figure it out is not a great use of my time today.
So here's what I got....about 60% right.