Marble runs are fun enough on their own, but what if you could eat the marbles? Gumballs are the satisfying answer to that question. To that end, [Adrian Seeley] whipped up a system for producing gumball runs programmatically for entertainment and candy dispensing purposes.
Track descriptions can be coded via basic instructions outlining a marble run, by typing out the order of straights, turns, and ramps that make up the course. Once created as a JSON file, the track description is processed via Javascript to create a tiled physical representation of the track via OpenSCAD, including all necessary support structures. The pieces can then be 3D printed to create an actual physical gumball run that can be easily assembled.
[Adrian] created a small tabletop “gumcoaster” as a prototype. Even at that size, it took 11 hours to assemble. It served as a trial run ahead of a larger version he hopes to build for a candy store display. We’ve seen some great marble runs before too, including those created via procedural generation. Video after the break.