sources and sinks

Let’s take a moment to understand how to apply the simulator to the physical kit.

sources

In the simulator, you may have noticed that marble leave behind a little “ghost” when they move:

00/0000/00
loading…

paths

We call this a source. These just show where we need to place a marble at the start of the pattern.

data sources

In simple patterns like the one above, a source only needs to spawn a single marble on the first turn. For more complicated patterns, however, we might need to supply a repeated string of marbles like marblemarblemarblemarblemarblemarble. Or supply an alternating string of marbles, like marbleholemarbleholemarbleholemarblehole; or even a random pattern like marblemarbleholemarbleholeholeholemarbleholemarblemarblehole. We call these complex sources data sources.

00/0000/00
loading…

data source

Instead of showing a single “ghost”, a data source shows you the marbles it needs in sequence.

To make a data source with the kit, we have two options:

  • Pause after each turn, and manually put in the marble that you need. This is quick to set up, but a bit of a pain to do.
  • Add some paths paths and/or turns turns to act as an input track, feeding in the marble one by one. This takes more setup, but lets you run the device continuously.

For example, these setups do the same thing:

00/0000/00
loading…

data source with track

As we progress with , we’ll start automating this process. Instead of manually putting in marbles, or creating a track, we’ll find ways for other patterns to supply the marbles that our pattern needs.

sinks

A sink is the opposite of a source: it’s a place where marble disappear.

00/0000/00
loading…

sink

What does this mean?

Obviously marble can’t actually disappear. Whenever you see a sink in the simulator, it just means we no longer care about that marble — it’s irrelevant to the pattern.

In practice, it’s best to add in some paths paths and turns turns to move these marble out of the disk. We don’t show these in the simulator, because it would clutter up the diagram; we just try to show you the key parts.

Later, we’ll look at strategies for waste management — how we can efficiently move unwanted marbles out of the system.

next

Now we’re familiar with data sources and sinks, we’ll look at a that helps us control these streams of marbles.

continue