Galton box animation: Difference between revisions

enhance description per talk
m ({{omit from|GUISS}})
(enhance description per talk)
Line 1:
{{Draft task}}
Generate an animated simulation of [[wp:Bean_machine|Sir Francis Galton's device]]. An example can be found to the right. [[File:Galtonbox-Unicon.PNG|thumb|Example of a Galton Box at the end of animation.]]
 
In a Galton box, there are a set of pins arranged in a triangular pattern. A number of balls are dropped so that they fall in line with the top pin, deflecting to the left or the right of the pin. The ball continues to fall to the left or right of subsequent pins before arriving at one of the collection points between and to the sides of the bottom row of pins.
 
For the purpose of this task the box should have at least 5 pins on the bottom row. Your solution can use graphics or ASCII animation. Provide a sample of the output/display such as a screenshot.
 
Your solution should allow users to specify the number of balls or it should run until full or a preset limit. Optionally, display the number of balls.
 
 
=={{header|Icon}} and {{header|Unicon}}==
Anonymous user