🧠Concept
Pick the right answer.
👀Code Reading
Look at the blocks. Predict what happens.
repeat (length of [fields v])
ask (join (item (i) of [fields v]) [ - public or private?]) and wait
if <(answer) = (item (i) of [privacy v])> then
change [sort_score v] by (1)
else
add (item (i) of [fields v]) to [review v]
end
change [i v] by (1)
enddefine load cards delete all of [fields v] delete all of [privacy v] add [Your high score] to [fields v] add [public] to [privacy v] add [Your password] to [fields v] add [private] to [privacy v]
define add to board ask play name ::custom if <[public_fields v] contains [Your high score]?> then add (join (play_name) (join [ - ] (score))) to [public_board v] else say [You kept your score private. The board stays off.] for (2) seconds end
🐛Find the Bug
Something is broken. Pick the fix.
Every card is checked against the answer of card 1, so the private cards are all marked wrong.
define run privacy check
set [i v] to (1)
repeat (length of [fields v])
ask (join (item (i) of [fields v]) [ - public or private?]) and wait
if <(answer) = (item (1) of [privacy v])> then
change [sort_score v] by (1)
else
add (item (i) of [fields v]) to [review v]
end
change [i v] by (1)
end🛠️Build It
Pick a level. Build it. Check the boxes.
Two lists with matching items.
More
Open your launched game. Make two lists, fields and privacy, and add three saved things with their answers in the same order.
Done when
Both lists show three items, and item 1 of each list is about the same thing.
Check every card against its answer.
More
Build one loop that asks about every card and checks the answer against the matching item of the privacy list. A miss goes to a review list.
Done when
Every card is asked one time. A right sort adds a point, and a miss lands in the review list.
Post the score only if it is public.
More
Keep every card you marked public in a public_fields list. Post the board line only when that list contains your high score, then show how many cards need review.
Done when
The board line holds a play name and a score with nothing private, and no line at all when you marked your score private.
Review the student's project, then check each thing they did.
Project Evaluation
0 of 5 ticked
💬Talk About It
Present your project to your teacher or a classmate.
- 1️⃣Show your privacy check to your teacher or a friend.
- 2️⃣Click the
and sort every saved thing in your launched game.
- 3️⃣Point to three things: (1) a private card — say why your game keeps it secret; (2) your board line — say one good side and one bad side of showing your score there; (3) the
item (i) of [privacy ▾]block — say how one loop checks every card. - 4️⃣Then open the review list and say which saved thing a player might sort either way.
Watch the student present, then check each thing they did.
Presentation Checklist
0 of 5 ticked
📤Submit
Send your results to your teacher and parent.
0 of 0 answered