(2 min.)
Log In!
Students Logged In





"Play This
on Repeat!"
Episode 6 ・ Video Game Galaxy



Get Ready!
Part 1
Last time on
Star Stuff!


At Bakery Galaxy, we met a passionate star-maker
named Emilio! We didn't get along right away...

LUZ


Well, you didn't have permission to go around restoring stars! So I wanted to stop you all!

EMILIO



But we made a deal — if we created an awesome new star, Emilio would admit that it's good to try new things.

VALERIA


As we solved puzzles together, Emilio taught us about debugging — finding and fixing errors in our solutions!

JAZMIN





Yep, we followed the 4 problem-solving steps to fix our bugs. By the end, we made a unique and tasty-looking star!

LUZ


You all were right, I admit! And now, I'm one of you!

EMILIO

But after traveling to the next station,
Wolf interrupted us...what's his plan now?

LUZ




Our story continues...


As I was saying, we're making tons of Wolf stars every minute!
But, I think we could speed up the process even more!
WOLF









To do that, I'll now be live streaming to you all 24/7,
until everyone's a huge Wolf fan! Get ready to hear my life story!
WOLF




Ugh, is there no way to turn those screens off? If people are hearing
him all the time, they might actually get influenced by his words.
LUZ



And with all his stars out in the universe, it's even harder to resist him...
but surely everyone's still fine! Right?
EMILIO




Hey, lately I've been thinking...Wolf doesn't seem that bad, actually.
STAR-MAKER A





Really? I've been thinking the same thing. The Wolf stars are kinda cool...
and they still make us stardust, so what's the problem?
STAR-MAKER B









...So his plan really is working. We've got to at least put a stop
to his live stream, and fast.
VALERIA







I could help with that!
???



That voice...hold on, I recognize you! Aren't you Brick, the guy who
makes tons of videos playing MyBlox?
LUZ



EEP! That is Brick! I...I watch your videos all the time! S-so nice to meet you!
JAZMIN



Woah, you know about me? Brick-tastic!!
Now you know I'm also a star-maker here at Video Game Galaxy!
BRICK



I overheard you all talking about stopping Wolf's live stream...and I thought, "Nice! Perfect! I've been wanting to fight back myself!"
BRICK


So hear me out on this — what if WE started live streaming as well?
Then maybe people will watch us instead!
BRICK



Not a bad idea. But...even though Brick is well-known,
will people want to watch the rest of us?
LUZ



You know, a lot of people have noticed the galaxies being restored — but they don't know who does it! If we live stream that, it'll be a big hit for sure!
BRICK


Okay, I like this plan! As an extra, what if we tell viewers to submit star designs on MyBlox — when we're done, we can pick one to recreate!
VALERIA



Brick-tacular idea!!! Okay, let's do this! Star Transformer, make me a star!
BRICK


























































































What's up everyone, Brick here! In this stream, I'm restoring stars with my new friends! Be sure to keep watching!

BRICK











Hey, Luz. Can you hear us on your Talk-It?
VALERIA











Yep. Can you and Jazmin see everything?

LUZ







Yes, we're monitoring both live streams!
But don't worry, we can still help solve puzzles!
JAZMIN











For example, I see that this puzzle has a new command
in the code editor. Why don't you check it out?
JAZMIN





Hmm, "jump to line" ? Let me try adding it.

LUZ

jump to line


Interesting, there's two parts:
the "jump to" block and the arrow.

LUZ

jump to





Can you add code in between those two blocks?

EMILIO




I'll try adding a turn. Then we can run it
just to see what happens.

LUZ











There we go. What do you think this "jump to"
command actually does?

LUZ

jump to




I have a guess! It'll make the bot jump
to a new location in the puzzle!

BRICK





I, uh...I think it'll make the bot jump over the next line of code!

EMILIO





Maybe it'll make the bot jump to a specific line in the code?

LUZ





To everyone watching, what do you think it'll do? Don't go anywhere, because we'll reveal the answer soon!

BRICK













Explore!
Part 2
Think about
this question while you play...
Be ready to vote then discuss
how you know after time is up!
What does jump to line
make the bot do?
2. Jump over the next line of code
1. Jump to a new location in the puzzle
3. Jump to a specific line of code
jump to line

Play!

Vote before Discussing
Polling...
Responses


What does "jump to line" make the bot do?
Jump to a new location
in the puzzle
Jump over the next line of code
Jump to a specific line of code
2
3
1
jump to line

Let's Pair Share!


What does "jump to line" make the bot do?
How do you know?
Jump to a new location
in the puzzle
Jump over the next line of code
Jump to a specific line of code
2
3
1
jump to line

Let's Pair Share!


What does "jump to line" make the bot do?
How do you know?
Jump over the next line of code
Jump to a specific line of code
2
3
1
Jump to a new location
in the puzzle
jump to line



Learn!
Part 3
Okay, the votes are in!
Time to reveal the answer by running the code!

BRICK


























The laser is turning over and over again?! I'm getting dizzy...

EMILIO





I'll reset it. Looks like 'jump to' makes the bot jump to a specific line in code, then keep running from there.

LUZ

jump to



We can choose which line the bot should jump to
by moving this arrow.

LUZ





Oh! So in this code, the bot was jumping to the start of the code again and again — that's why the Laser kept turning!

BRICK





According to the bot manual, using "jump to" like that is also called a loop — a block of code that repeats a sequence!
JAZMIN



jump to



This is just a hunch, but...I think you need to use a loop to solve this puzzle while staying under the line limit!
JAZMIN






Good to know. In that case, let's start from the beginning and make sure we understand this puzzle.

LUZ



I notice that the bridge to the Starpad is powered by the counter. If you put 3 cubes in there, it'll turn on.
VALERIA





I see 3 cubes over there on the launcher!
We can launch them up here by powering target C.

EMILIO


C


I get it! That means target D powers this bridge on the left! We'll need that to be on if we wanna get the cubes!

BRICK


D

Right! We can code the Laser to power the targets. Let's try it.

LUZ



But...I'm not exactly sure how to use "jump to" in our code.

LUZ

jump to


Hm...what if you just start coding without the "jump to" first? Like you usually do!

BRICK

jump to







I like that idea! As we code the sequence,
we can ask ourselves: When do we repeat?

EMILIO








1




2




3




4




Yeah, yeah! If we notice we're about to code the same steps again...that's how we'll know it's time!

BRICK








1




2




3




4




3




4




I see. Instead of writing it all over again, we can just use
a loop to repeat it!

LUZ








1




2




3




4




1




2




Let's start coding. First, we need to get a cube. We need to power the launcher so one of them will fly up here.

LUZ



So the Laser needs to hit target C.
You should make it turn clockwise, then!

EMILIO


C



But, uh...I do get kind of confused with turn directions.
So maybe you should run the code, just to check.

EMILIO









That looks good. What's next?

LUZ





To get the cube, we need the left bridge to be on again!

BRICK




In that case, I'll make the Laser turn counter clockwise
so it turns back to target D.

LUZ








D






Okay! Now I can move the cube to counter B.

LUZ




B
Yeah. But don't forget, Luz — you'll need the Laser to wait there while you cross the bridge.
VALERIA









Right, thanks. Then I'll add a "wait for" next...

LUZ

wait for





And I'll make it wait for counter B — once I've put the cube in the counter, it'll be safe for the Laser to turn again.

LUZ





Great! After that, we can get the next cube! So just make
the Laser turn clockwise to hit target C again!

EMILIO




C
Right, then we'd...wait a second. Wouldn't we just be
repeating the same steps again?

LUZ





Woah! That's so true, Luz! Plus, look at the line limit —
we can only add one more line!

BRICK





Yeah. That's another sign we should use "jump to line" to repeat our code, instead of writing it all over again.

LUZ

jump to line



I'll add it to my code and make it repeat everything here.

LUZ








Yeeeeah!! It's looping time!!

BRICK





Uh, hold up. I think there's a problem with your code.
Take another look at it, Luz.
VALERIA









What's wrong with their code?
Think independently before starting poll
Poll Preview





Vote!
What's wrong with their code?
Polling...
Responses


3
2
1
Chose the wrong
object to wait for
Both turns should
be clockwise
'jump to' and arrow
are flipped



jump to
wait for

Vote!
What's wrong with their code?
Polling...
Responses


3
2
1
Chose the wrong
object to wait for
Both turns should
be clockwise
'jump to' and arrow
are flipped
jump to
wait for




There's a problem? Let me run it and see what happens.

LUZ












...Oh. Nothing happened.

LUZ





I know, I know! That's because the "jump to" and arrow are flipped! They should be in opposite places!

EMILIO

jump to




I see. Right now, the bot just jumps to the end of the code. That's why nothing happened.

LUZ





Right. To create a loop, the arrow needs to be above
the "jump to" block.
VALERIA



jump to



Okay, let me fix this. I'll drag the "jump to" block
to the bottom of the code, and the arrow to the top.

LUZ

jump to










Great! Now everything in between the arrow and "jump to"
will repeat. Go ahead and run it, Luz!
JAZMIN



jump to



Okay! We already know the turns work...

LUZ








Now I bring the cube over to counter B...

LUZ









B







Wowow! The Laser just looped back to the top!
It already launched the next cube!

BRICK





Yeah! Now I'll bring this cube to counter B again...

LUZ








B









And the Laser just looped again! Now for the last cube!

EMILIO





I'll just put it in the counter, and...

LUZ








YES! Now that the counter has 3 cubes,
the bridge to the Starpad is on!

BRICK

























We did it!!

EMILIO








So loops let us repeat code without having to write it a bunch of times...pretty convenient.

LUZ







Right? Plus, loops help us stay under the line limit!
We'll probably need them for the next puzzles, too.
JAZMIN











Yeah. By the way, our live stream is gaining viewers.
Wolf is losing viewers, but he still has more than us. For now.
VALERIA











Let's gooo!! Let's keep up the hype everyone!!

BRICK








To all the lovely people watching, don't forget you can submit star designs for us through MyBlox!

BRICK











I feel like Brick has unlimited energy...does he not get tired?

LUZ (THINKING)











But I'm sure everyone watching feels his energy too.
That's good, he can draw people away from Wolf.

LUZ (THINKING)










Plus, if we can encourage people to remember what they're really passionate about...that'll weaken Wolf's influence.

LUZ (THINKING)










...Let's keep going everyone. We're not gonna lose to Wolf!

LUZ













Keep Going!
Part 4
Keep this in mind as you play...
Use loops to solve today's puzzles!
turn




jump to
2. As you code, ask yourself:
When do I repeat?
3. Make sure the arrow is above
the jump to block.
jump to
1. Code the sequence that the bot
needs to do, then add the jump to
block to make it repeat.
jump to

Play!



Check In!
Part 5

...And so that covers everything from the time I was born to my 1st birthday! I'm sure you're all excited to hear what comes next!
WOLF




...Wait, what happened to all my viewers?! Hello??
WOLF






Sorry Wolf, but everyone's tuned in for the reveal of our new star!
Take it away, Luz!
BRICK






Thanks for your creative designs, everyone! The one we decided to make is...
LUZ





Ta-da! A baby dragon star! We loved this creative design!
LUZ






Wait, everyone's watching those kids live stream?! You all betrayed me...!
WOLF





Uh, I mean...of course, my fans might want a break from my overwhelming charm once in a while! I completely understand!
WOLF




So I...I'll sign off for now. But I'll be back soon, just you wait! Byeee!
WOLF



WOLF IS
OFFLINE )':



Finally, he's gone. Good work team!
LUZ



Hey, we were just watching your stream! That was sooo fun!
StAR-MAKER A






Yeah! I can't believe we were watching Wolf earlier...
he doesn't talk about anything but himself!
StAR-MAKER B






I don't know why I thought he was cool...
must've been all the Wolf stars getting to me.
StAR-MAKER A










Same. But after watching you all, I think we can make our own stars, too! C'mon, let's go try!
StAR-MAKER B






We did it!! Thanks for going along with my idea, everyone!
BRICK



We couldn't have done it without you, Brick! Your energy is really motivating.
LUZ



I don't know how you do it...doesn't streaming all the time get tiring?
JAZMIN



Hmm...I've been making videos for so long,
I guess I'm used to it! But I have to admit...
BRICK


It's been a while since I've made real friends. So...can I tell you a secret?
BRICK



Of course! We won't tell anyone!
EMILIO



Okay, so..."Brick" is just a nickname I use for my videos.
My real name is Derrick. I've gotta keep some things private, you know?
BRICK


That makes sense. Thanks for telling us, Derrick.
VALERIA


Haha! I'm not used to hearing people call me that! You can keep calling me Brick out in public, though. I just wanted you all to know.
BRICK



Got it. So, Brick...are you joining our team, or what?
LUZ



Of course I am!! We're all best buds now!
BRICK



Cool. We're really a full party now, huh?
VALERIA


You're surrounded by friends again, Luz...I'm glad.
VALERIA (THINKING)


Alright, let's head out.
VALERIA




Oh! This is the next station? I heard there's a bit of a situation going on here...
BRICK



So everyone should watch out for— hey Valeria, behind you!!
BRICK




—Wha?!
VALERIA






Until
next
time...
Star Stuff LCR: Lesson 6
By sophiekansmith
Star Stuff LCR: Lesson 6
Template Deck
- 143