On 10/16/2017 01:49 PM, enrike wrote:
I could have created a simple abstraction encapsulating the structure but since the number of outputs must be dynamically created on load I am not sure about how to do it. I also thought it might be already something out there, I did not want to reinvent the wheel
the dynamic part can be solved easily, by splitting the functionality into two parts: a counter (for which you can provide an pre-made abstraction to your students), and a dispatcher (which is a simple [route 0 1 2 3 ...])
so your students would need to create two objects instead of one (with a single connection between the two).
[bang( | [counter 5] | [route 0 1 2 3 4] | | | | |
this should be doable (from a pedagogical pov).
this also has the added bonus that you can easily exchange the simple counting with higher maths, like [random 5].
gdsaf IOhannes