[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"md:..\u002Fcontent\u002Fen\u002Fmissions\u002Frush-hour.md":3,"md-list:..\u002Fcontent\u002Fen\u002Fmissions\u002F":20},{"meta":4,"body":19},{"order":5,"group":6,"title":7,"summary":8,"devices":5,"difficulty":9,"image":11,"levels":12,"seo":16},1,"rushHour","Rush Hour","Run a traffic gate with blocks. Open it for each car, close it once the car is through, then add traffic lights and a car counter.",[5,10],2,"\u002Fog\u002Frush-hour.png",[13,14,15],"Let them through","Traffic lights","Count them",{"title":17,"description":18},"Rush Hour mission | Code a traffic gate with blocks - FunFunRobotic","A free block-coding mission in your browser. Program a traffic gate and its lights in 3D, no hardware needed. Great for kids and beginners.","A car is coming up to the gate! When it presses the button, your program has to open the gate, wait for the car to pass, and close it again. Never close it on a car.\n\n## What you'll learn\n\n- **Events:** run blocks when a button is pressed\n- **Sequences:** green light → open → close → yellow → red\n- **Delays:** wait for the car before closing\n- **Counters:** count every car that gets through\n\n## Levels\n\n1. **Let them through:** open the gate when a car arrives, close it once the car is through\n2. **Traffic lights:** green before you open; after closing, yellow for a second, then red\n3. **Count them:** the same light rules with faster cars, and count every car\n",[21,27],{"slug":22,"meta":23,"body":19},"rush-hour",{"order":5,"group":6,"title":7,"summary":8,"devices":5,"difficulty":24,"image":11,"levels":25,"seo":26},[5,10],[13,14,15],{"title":17,"description":18},{"slug":28,"meta":29,"body":42},"crossroads",{"order":10,"group":28,"title":30,"summary":31,"devices":10,"difficulty":32,"image":34,"levels":35,"seo":39},"Crossroads","Run two gates at a crossing from one program. Let one road go at a time, with no crashes.",[10,33],3,"\u002Fog\u002Fcrossroads.png",[36,37,38],"Take turns","Two traffic lights","Busy junction",{"title":40,"description":41},"Crossroads mission | Code two devices together - FunFunRobotic","A free block-coding mission in your browser. Program two traffic gates at a crossing to work together in 3D, no hardware needed.","Two roads cross, each with its own gate. Cars reach both gates at the same time, so your program has to let one road go at a time. Two cars in the junction crash!\n\n## What you'll learn\n\n- **Multiple devices:** one program drives two gates\n- **Coordination:** open the other gate only once the junction is clear\n- **Conditions:** decide from what the other device is doing\n\n## Levels\n\n1. **Take turns:** let one road go, and open the other gate once the junction is clear\n2. **Two traffic lights:** follow the light rules on both gates\n3. **Busy junction:** more cars, faster, and they give up sooner. Not a single crash\n"]