Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #73: Plinko Probabilities

atcodedog05
22 - Nova
22 - Nova

Here is my solution.

JethroChen
10 - Fireball
Spoiler
challenge_73_jc.PNG
AngelosPachis
16 - Nebula

Really 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

Spoiler
Screenshot 2020-10-08 194234.jpg

Workflow

Spoiler
Screenshot 2020-10-08 201639.jpg

Iterative Macro

Spoiler
Screenshot 2020-10-08 201227.jpg

 

 

 

Jonathan-Sherman
15 - Aurora
15 - Aurora

Challenge 73 is done! Knew i'd get there with the iterative macro approach eventually!

 

Results choosing slot 4 with 8 levels:

Spoiler
challenge 73 JMS solution output.PNG

Iterative Macro:

Spoiler
challenge 73 JMS solution.PNG
Sylvana
8 - Asteroid

Really a challenge to set up a start. My solution:

Spoiler
Basis of Workflow.png

greggrimmer1
8 - Asteroid

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.

Spoiler
So instead I took a brute force approach: built an iterative macro to model each play / put this inside a batch macro to run 1000 times for each possible starting slot (so 5000 scenarios in all). Final output therefore an approximation of the odds.

The iterative macro reproducing the 50/50 odds at each level, accounting for the sides of the board:
Plinko iterative.JPG

The results / odds of landing in bucket 2 (probably would want to run a few more times for just 1 and 2 to get more precise odds for those)
 

Plinko results.JPG

 


A2H
11 - Bolide
Spoiler
Capture d’écran, le 2020-11-15 à 18.24.03.png
Qiu
20 - Arcturus
20 - Arcturus

Still intimated by apps.

 

AkimasaKajitani
17 - Castor
17 - Castor

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.

 

Spoiler
Workflow:
AkimasaKajitani_0-1606050992770.png


Batch Macro:

AkimasaKajitani_1-1606051009163.png

Iterative Macro:

AkimasaKajitani_2-1606051044217.png

Result:

AkimasaKajitani_3-1606051083203.png

 

 

This is one of the most tough challenges. 

tammybrown_tds
8 - Asteroid

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.

 

Spoiler
tammybrown_tds_0-1608336375334.png