← LessonsCREATOR PATH Β· 10–12πŸ€–

Robot Memory Recycler

LESSON 131
🎯 Today's missions
πŸ€–β™»οΈβš™οΈ
ROBOT FACTORY

Robot Memory Recycler

The factory memory floor is packed with old robot parts. Trace what the control console can still reach, recycle abandoned objects, and uncover a reference hiding inside an alarm listener.

🧠 Before we start

Pizza Saga Kitchen tracked which steps were still active before undoing work. Programs also track which objects are still active. Garbage collection starts at trusted roots, follows references, marks everything reachable, then sweeps away what no running part can reach.

🌱 Start at rootsβ†’πŸ”— Follow referencesβ†’βœ… Mark reachable→♻️ Sweep the rest
Challenge 1 of 4Build the memory cycle
1

Build the collector cycle

Arrange the memory phases in order. Objects must exist before references connect them; a released reference may make an object unreachable; collection then finds and recycles it.

OBJECT LIFECYCLE Β· REFERENCES DECIDE WHAT STAYS ALIVE
1 Β· MAKE
2 Β· CONNECT
3 Β· RELEASE
4 Β· COLLECT

🌟 What you learned

Come back tomorrow for another advanced visual coding adventure! ✨