🧠Concept

Pick the right answer.

Concept · Q1
Your launched game saves these four things. Which one is private?
Concept · Q2
Your score board is public. What may one board line show?
Concept · Q3
Sorting your saved game data into public and private uses which computing idea?
Concept · Q4
One player wants their play name kept off your board. What design fits best?

👀Code Reading

Look at the blocks. Predict what happens.

Code Reading · CR1
Card 3 is "Your password" and the player types public. What happens on that turn?
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)
end
Code Reading · CR2
You call this custom block twice in a row. What do the two lists hold?
define 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]
Code Reading · CR3
play_name holds Sky and score holds 4. The public_fields list holds Your play name only. What does the board show?
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.

🧑‍🏫
For the teacher

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. 1️⃣Show your privacy check to your teacher or a friend.
  2. 2️⃣Click the ▶ and sort every saved thing in your launched game.
  3. 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. 4️⃣Then open the review list and say which saved thing a player might sort either way.
🧑‍🏫
For the teacher

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