Share/BookmarkPlinko


Wrote a processing sketch to emulate plinko, the game popularized by “Let’s Make a Deal!”. You can see the sketch here. Every time a new ball hits a peg it is diverted one way or the other based on a random number that is generated (if 0 go left, if 1 go right). Once a ball reaches the bottom of the pegs they are killed, which then increase the size of the bar in the position they ended up. After the cycle continues for a while you can see the bars begin to generate a normal curve.

Tags: , , , ,