Galton box animation: Difference between revisions
Content added Content deleted
(Added Kotlin) |
m (→{{header|Kotlin}}: Small correction to comment.) |
||
Line 1,625: | Line 1,625: | ||
// Next step for the simulation. |
// Next step for the simulation. |
||
// Frozen balls |
// Frozen balls are kept in balls list for simplicity |
||
for (b in balls) b.doStep() |
for (b in balls) b.doStep() |
||
} |
} |