We make use of Snap!'s first class blocks (code as data) to save actions into a list. We later iterate over that list and run each action, effectively creating a behavior recorder and player.
In this case, we're storing Braccio movements and teaching it to collect stuff from a spot on a table and throw it into a garbage can.
Ещё видео!