🧠Concept
Pick the right answer.
<(typed) contains (secret)?> checks the letters the player typed. What does it report?code. Which block turns that same code into a color on Pico?👀Code Reading
Look at the blocks. Predict what happens.
code?set [word v] to [egg] set [secret v] to (letter (1) of (word)) set [code v] to (item # of (secret) in [alphabet v])
set [typed v] to [zz] if <(typed) contains (secret)?> then change [score v] by (code) end
code is 8. The player typed "zh". What does the game do?set [typed v] to [zh] if <(typed) contains (secret)?> then change [score v] by (code) end
forever
if <(length of (typed)) = (length of (word))> then
if <(typed) contains (secret)?> then
change [score v] by (code)
end
end
end🐛Find the Bug
Something is broken. Pick the fix.
This bonus check should pay points when the typed letters hold the code letter. The player typed "hz", but the score never changes. What is the bug?
set [typed v] to [hz] set [secret v] to [h] if <(typed) = (secret)> then change [score v] by (code) end
🛠️Build It
Pick a level. Build it. Check the boxes.
Turn a letter into its number.
More
Open your Chapter 12 Catch Game. Make an alphabet list with a to z in order. Set a variable word to a short code word. Use (letter (1) of (word)) to take the code letter, then item # of to find its number.
Done when
Green flag sets the code word. The secret monitor shows letter 1 of that word. The code monitor shows the right position number (a=1, h=8, z=26).
The code sets color and pays a bonus.
More
Add the color form and the bonus. Use set [color ▾] effect to ((code) * (10)) so the code sets Pico's color. Add key scripts that join typed letters. Pay the bonus with <(typed) contains (secret)?> only when (length of (typed)) matches (length of (word)).
Done when
Pico's color matches the code. A short guess pays nothing. A full-length guess with the code letter adds the code number to the score.
Save letter codes, then decode them.
More
Give each apple its own code letter. Add the code number of every caught apple to a "codes" list, then decode that list back into the word with item ( ) of.
Done when
The codes list fills with one number per caught apple. Decoding the list rebuilds the exact word. The bonus check still pays only for the code letter.
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 a friend the secret code in your Catch Game.
- 2️⃣Point to your code word, the code letter, its number, and its color.
- 3️⃣Point to the
containsblock that pays the bonus. - 4️⃣Say "same code, three ways."
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