Today you will sort the data your launched game saves with one list loop, then build a score board that shows only public data.
1 Warm-Up
2 Predict
3 Try It
4 Plan
5 Build
6 Fix It
7 Extend
8 Math Challenge
For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 2
✦ CSTA 2-IC-23 · ISTE 1.2.d · Standards
| 🎯 I can | sort the data your launched game saves with one list loop, then build a score board that shows only public data |
| 📝 New words | 6 words |
| ⏱ Lesson time | ~45 min |
Teacher Guide
📋 Before class
⚠️ Common misconceptions
- Students copy the same ask and check under every card. Chapter 7 taught why copies are a defect — hold the cards in a list and run one loop instead.
- Students forget to move the loop counter, so the same card is asked five times. The counter must change inside the loop, after the check.
- Students think one answer fits every person. Some data is private for one person and fine for another — a good design lets each player decide.
- Students put the score on the board without asking whether the player marked it public. The board must test the public list with
containsbefore it adds the line.
🎯 Differentiation
🐢 Struggling: Give the student the two lists already filled with three cards. They only build the loop, the ask, and the if/else. Skip the score board part.
🚀 Advanced: Ask the student to let each player mark one extra card as private for them, keep that choice in a third list, and check it inside the same loop.
💡 During the lesson
- Warm-UpEvery student works on the game they launched in Chapter 10 — the high score it already saves is the first card. Name social engineering for older students: people who attack accounts collect small public facts — a school, a pet name, a date — and put them together to guess a password. That is why the same fact can be safe to show and risky to show at once.
- Try ItThe three experiments are the three parts of the final check. The first shows why two lists in the same order need no copied code. The second, with a step of 0, reads card 1 three times — the counter bug from the misconceptions. The third shows that the board reads the student's own sort: only a public high score reaches public_board.
- PlanThe two matching lists are the key artifact. A student who can draw card 1 next to answer 1 writes one loop; a student who cannot will copy the same ask and check under every card — the duplication defect Chapter 7 warned about. Require the paper lists before Scratch. Do the first box together: pick, then watch both pictures.
- BuildStep 10 is the judgment the whole chapter builds toward.
containsasks one yes-or-no question of a whole list — is this field in the set I marked public? — so the board reads the student's own sort instead of a hard-coded rule. Chapter 9 of Level 4 taught this block for a name search; here it decides what a shipped game shows the world. Note also that only correctly sorted public cards enter the list: a password typed as public lands in review, so a wrong answer can never widen what the board may post.
Steps 4 to 7 build one loop in three passes on purpose. The finished check has no copied code: adding a card is twoaddblocks, and the check never changes. That is the duplication lesson of Chapter 7 applied to the last build of the course — if a student pastes a secondaskandif/else, send them back to step 7.
Show the picture first. Ask what will happen — everyone points or says one word.
Everyone picks an answer first. Then press the flag together.
Change one thing at a time. Run it, watch, then change the next thing.
Pairs put the cards in order before anyone opens Scratch.
Students build step by step. Walk around — help with questions, not with the mouse.
Ask: what did we want, and what did it do? Let them find it.
Fast finishers pick the next tier. Everyone else finishes their build.
Work it out on paper first. Then check it on the stage.