Galton box animation: Difference between revisions
Content added Content deleted
m (→{{header|Ruby}}: key symbols on linux) |
|||
Line 266: | Line 266: | ||
{{libheader|Shoes}} |
{{libheader|Shoes}} |
||
[[File:galtonbox.shoes.png|thumb|Sample display of Ruby solution]] |
[[File:galtonbox.shoes.png|thumb|Sample display of Ruby solution]] |
||
<lang ruby>$rows_of_pins = |
<lang ruby>$rows_of_pins = 12 |
||
$width = $rows_of_pins * 10 + ($rows_of_pins+1)*14 |
$width = $rows_of_pins * 10 + ($rows_of_pins+1)*14 |
||