Galton box animation: Difference between revisions
Content deleted Content added
m →{{header|XPL0}}: {{Out}} |
m moved Categorys to top |
||
Line 1:
[[Category:Animation]] [[Category:Randomness]] {{omit from|GUISS}}
{{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 can have either one or more balls in flight at the same time.
If multiple balls are in flight, ensure they don't interfere with each other.
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. ▼
▲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|AutoHotkey}}==
|