Priority Clinic
The clinic robot needs a smarter line! Build a rule that helps urgent patients first while everyone else keeps their turn.
π§ Before we start
You already know that a sequence keeps steps in order and a condition makes a choice. Today they work together in a priority queue: important jobs can move ahead, but matching jobs stay in arrival order.
Build the smart rule
Tap the three instruction blocks in the order the clinic robot should follow.
Fill the priority queue
Tap all arrivals. Watch the urgent patient move aheadβeven though they arrived second.
Help in the right order
The queue has two urgent patients. The one who arrived first must still go first.
Debug the broken rule
The robot mixed up FRONT and BACK. Tap the broken instruction, then choose its repair.
π What you learned
- A queue stores jobs waiting for their turn.
- A priority lets an important job move ahead.
- Jobs with the same priority keep their arrival order.
- Debugging means finding and repairing a broken rule.