โ† Lessons PIXEL PATH ยท 4โ€“6 ๐ŸŒธ

Sakura Once-Only Gate

LESSON 122
๐ŸŽฏ Today's missions
๐ŸŒธ๐ŸŽŸ๏ธ๐Ÿฎ
CHERRY BLOSSOM FESTIVAL

Sakura Once-Only Gate

The messenger sometimes delivers the same petal ticket twice. Build a gate program that stamps each new ticket onceโ€”and never repeats the same job.

๐Ÿง  Before we start

At the castle, you remembered votes before making one shared decision. Today, the gate remembers a ticket's unique token. This makes an action idempotent: repeating the same request still changes the festival only once.

๐Ÿ“จ Receiveโ†’๐Ÿ”Ž Check tokenโ†’๐ŸŒธ Act onceโ†’๐Ÿง  Remember
Challenge 1 of 4Build the once-only rule
1

Arrange the gate program

Tap the four visual instruction blocks in the safe order. The gate must check a token before stamping its petal.

MY ONCE-ONLY VISUAL PROGRAM
1 ยท ARRIVE
2 ยท LOOK
3 ยท DO
4 ยท SAVE

๐ŸŒŸ What you learned

Come back tomorrow for another advanced visual coding adventure! โœจ