(2 min.)
Log In!
Students Logged In
"Title"
Episode 5 ・ Bakery Galaxy
Get Ready!
Part 1
Last time on
Star Stuff!
We arrived at Cat Galaxy, only to see a familiar face — Ed!
LUZ
We also met Wolf's sidekicks, Cordy and Lem. They mocked us, then went off to take all of the station's stardust for themselves!
VALERIA
They really scared me with that...but luckily, we had a plan! The three of us restored the galaxy's stars like usual...
JAZMIN
...And I messed with their spaceship! Just enough so they had to power the spaceship repair with all the stardust they stole!
ED
They were so angry when they found out. Hopefully that'll keep them off our track for a while.
LUZ
...But it seems like this next galaxy has a whole new problem waiting for us.
LUZ
Our story continues...
So the rumors about your group were true. Well, your time is up.
???
Are you another one of Wolf's sidekicks? Don't try and stop us.
VALERIA
Sidekick...? No, I'm Emilio! I'm one of the best star-makers in Bakery Galaxy!
EMILIO
And I am politely asking you and your friends to please stop what you're doing — resetting the bots and all.
EMILIO
Huh? If you don't work with Wolf, why do you care? Are you just a fan of his?
LUZ
What? No! I don't like Wolf at all, actually. The design of his stars is so...stale.
EMILIO
But that doesn't matter — what you're doing is against the rules! The star-makers in charge have been discussing how to deal with Wolf...
EMILIO
So they told everyone to stay put until they make a decision. But here you are, doing whatever you want!
EMILIO
Um...but it might be a while before they decide what to do. I think it's okay for us to try new things...otherwise, won't Wolf just take over everything?
JAZMIN
She's right. Doing nothing is exactly what Wolf wants us to do.
VALERIA
Well...I can see your point...but! You can't just show up to someone else's kitchen and act like you know better!
EMILIO
I'd like to see you try and make a new star for our galaxy...you'll see it's not so easy!
EMILIO
Oh, you're on. If we make an awesome new star, will you admit you're wrong?
VALERIA
Uh, I...I mean, yes, of course! But if you try and give up, you three have to admit you're wrong!
EMILIO
We've gotten involved with another interesting person...
LUZ
But let's do it. We've done hard things before, and we can do it again.
LUZ
Well! If you insist on doing this, then I'll be nice enough to watch over you. After all, I can't have you causing any more trouble.
EMILIO
Get ready, everyone. Star Transformer, make me a star!
EMILIO
Okay, let's see you try this one!! Can you make it all the way to the Starpad?
EMILIO
Woah, is that a new kind of bot?
LUZ
I wonder how it works...looks like it's powering that tall button somehow!
JAZMIN
...Hey, Emilio. You look like you really want to say something.
VALERIA
Oh, it's just...that bot is called a Laser. And the tall button is called a target.
EMILIO
N-not that I want to help, or anything!!
EMILIO
Right...then let's try coding the Laser. I'll add the "turn" command...
LUZ
Looks like I need to choose a direction. I'll pick "clockwise" for now, and we can test it out.
LUZ
Hmph! I see a problem with your code...but do you?
EMILIO
Uh...maybe I should have turned counter clockwise instead?
LUZ
That might not be the problem. Is it just that the bridge turned off too early?
VALERIA
The laser also hasn't powered target D yet...is that the main problem, Emilio?
JAZMIN
Well if you can't figure it out, I suppose I could tell you! It's—
EMILIO
Oh, don't worry! We can figure this out ourselves. Just give us a few minutes.
VALERIA
Explore!
Part 2
Think about
this question while you play...
What's the main problem with Luz's code?
Be ready to vote then discuss once time is up!
Vote before Discussing
What's the main problem with Luz's code?
Polling...
Responses
The laser turned the wrong way
1
2
3
The bridge turned off too early
Target D isn't on yet
Let's Pair Share!
What's the main problem with Luz's code? Why?
Learn!
Part 3
You're right, Valeria. The main problem is the bridge turning off too early — if we're stuck here, we can't do anything.
LUZ
If I make the laser turn the other way, the bridge still turns off — so that's not the problem.
LUZ
And like Jazmin suggested, I do think we need to hit target D eventually since it's connected to that launcher...
LUZ
But it's on the other side of the puzzle, so that'll come later. First we need to figure out how to cross the bridge.
LUZ
Hmph, I guess you all figured it out. But let me ask you this! Do you know what a bug is?
EMILIO
Oh, I love bugs! Ladybugs are my favorite...
JAZMIN
Er, not that kind of bug. In coding, a bug means a mistake or error in your solution.
EMILIO
Finding and fixing those errors is called debugging!
EMILIO
Oh, I remember reading about debugging in the bot manual! I think it also listed 4 steps that can help you debug...
JAZMIN
Yes! I follow those 4 steps all the time when I make mistakes while baking bread. It goes like this...
EMILIO
Step 1: understand the problem!
EMILIO
When I see something go wrong, I ask myself: What happened? Why is that a problem?
EMILIO
You all answered those questions just now, talking about the bug in Luz's code.
EMILIO
I see. If we understand what the bug is first, we can take steps to fix it more easily. So what comes next?
VALERIA
I'm glad you asked! Step 2: plan a solution! This is when you think of ways to fix the bug!
EMILIO
After figuring out what went wrong, I ask myself: What do I want to happen instead? How can I do that?
EMILIO
Hm...so, what do we want to happen instead of the bridge turning off?
JAZMIN
I want the bridge to stay on until I'm done crossing it. Since target C powers the bridge, I want the laser to stay where it is.
LUZ
And how can we do that?
JAZMIN
Well...if a bot's doing something too fast, we usually need a "wait for" before that line of code.
VALERIA
Oh yeah! Looks like Lasers can wait just like the other bots. Let me add it to the code.
LUZ
I'll make the Laser wait for switch E, since it's the only thing I can interact with after crossing the bridge.
LUZ
You have your plan, so it's time for step 3: try the solution! Run the code and see what happens.
EMILIO
Our plan worked! The laser is waiting, so I have time to cross. And if I flip switch E...
LUZ
It turns!
LUZ
You just did step 4: reflect on your solution! If your plan worked, you can move on. If not, go back to step 1.
EMILIO
Cool. Let's keep coding the Laser — we want it turn around and hit target D, right?
VALERIA
Yeah. If I stand on the launcher when target D powers on, I'll get launched over to the top platform.
LUZ
And once you're there, you can move the cube to the cube tray. That'll turn on the bridge to the Starpad!
JAZMIN
Right. So to make the Laser hit target D, I'll add another turn...does it matter which direction?
LUZ
Since the first turn is clockwise, this one should also be clockwise! If it goes the other way, it'll turn back to target C.
JAZMIN
That makes sense. Let me run the code again.
LUZ
I just need to make sure I'm standing on the launcher when I hit the switch. Now—
LUZ
Wah! Yep, that worked.
LUZ
Now I just need to move the cube...wait, huh?
LUZ
Heh. Seems like you ran into another bug! I told you this would be difficult!
EMILIO
Well since you so helpfully taught us how to debug, I think we got this.
VALERIA
...Oops.
EMILIO
Hehe...let's start by understanding the problem. First, what happened?
JAZMIN
Target D powers both the launcher and the elevator. So I got launched over here, but the elevator and the cube went up.
LUZ
And why is that a problem?
JAZMIN
Now I can't reach the cube. So I can't turn on the cube tray.
LUZ
Now to plan a solution: What do we want to happen instead? How can we do that?
VALERIA
We want to elevator to come back down so I can get the cube. As for how to do that...I'll have to think.
LUZ
How can we bring the elevator back down?
Think independently before starting poll
Poll Preview
Vote!
Polling...
Responses
How can we bring the elevator back down?
4
3
2
1
Either 2 or 3
Add "turn CCW"
Add "turn CW"
Add "wait for"
Vote!
Polling...
Responses
Question
Text
Text
Text
Text
4
3
2
1
There's no way to stop the elevator from going up without using the launcher, so "wait for" won't help here.
VALERIA
But we can make the elevator come back down — we just need the Laser to turn away from target D.
LUZ
Oh...right! After Luz uses the launcher to reach the top, we don't need target D to be on anymore.
JAZMIN
Yep. I'll add it to the code. A turn in either direction works, since we just need it to face away from the target.
LUZ
Now to try the solution!
LUZ
The plan worked! After powering the launcher, the Laser turned away — now the elevator's back down.
LUZ
Now I just move the cube to the cube tray...
LUZ
...and cross over to the Starpad!
LUZ
Woah, you did it!
EMILIO
Hey, don't forget our deal. If we make a cool new star, you'll admit you're wrong for trying to stop us.
VALERIA
I, I didn't forget!! I just thought...our bet would be no fun if you gave up right away! So I gave you some tips!
EMILIO
Anyways...let's just see if you can do the next one!
EMILIO
(He's totally trying to hide how much fun he's having...maybe this is the first time he's tried something new in a while.)
LUZ (THINKING)
(If we can just sway him to our side, he might be really helpful...)
LUZ (THINKING)
Alright, let's keep going! If we run into problems, we can just debug them.
LUZ
Keep Going!
Part 4
Keep this in mind as you play...
Check In!
Part 5
You did it...you made a new star...!
EMILIO
Yep. It's a sugar cookie star, with decorations that we designed!
LUZ
Well? Ready to admit your defeat, Emilio?
VALERIA
Um...well...
EMILIO
Okay fine. I can't lie — your new star is AWESOME! And I had more fun today than I've had in a long time!!
EMILIO
I'm done letting the bots make all the stars. And I'm done waiting around for someone else to decide how to handle Wolf's evil plan!
EMILIO
I want to fight back! So please...let me join your team! I'm sorry for doubting you earlier.
EMILIO
Heh...sure, why not? You're actually pretty cool, Emilio. Not everyone can admit when they're wrong.
VALERIA
With all the time we spent debugging, I realized that mistakes aren't a bad thing. They help us learn and grow.
EMILIO
Which reminds me! Now that I'm on the team, I'll make desserts whenever you want! Finally, I can start improving my recipes again...!
EMILIO
Ooh, I'm excited! It's nice how passionate you are, Emilio. It's made me realize...
LUZ
We've been so focused on our adventure, I haven't been keeping up with my hobbies — drawing, doing jigsaw puzzles, playing MyBlox...
LUZ
Oh!! By MyBlox, you mean the video game where you can make pixel art? I don't play it, but I love watching other people play!
JAZMIN
I get that, it's fun to see what other people come up with! We should all play together sometime.
LUZ
That sounds fun! Why don't we—
EMILIO
Testing, testing...are we live?
???
Yes? Oh, good! This is Wolf, the universe's BIGGEST star,
broadcasting live to you all again!
WOLF
Ugh, not him again...what's he gonna say this time?
LUZ
I'm here to tell you all that my previous Unibots update is being received amazingly! You all LOVE the Wolf stars, just like I do!
WOLF
However, I've noticed a few pesky little bugs here and there. Some galaxies have been losing my iconic Wolf shine...but, fear not!
WOLF
I'm about to squash those bugs. For good.
WOLF
Until next time...
Meanwhile, Sol...
Tinker to understand how BOOM and WEAK work!
In problem 1, which of Zorro's observations is the most useful?
Be ready to vote then discuss
why after time is up!
You can also use the Inspector
to read rules and learn more about state blocks!
To understand a problem,
ask yourself these questions:
Once you understand a problem,
plan a solution by asking yourself these questions:
Work independently
to solve problems!
Next lesson, you will solve problems independently to show what you’ve learned!
Asking the Guiding Questions
Inspecting rules and objects
Inspecting state blocks
If you get stuck, try:
In problem 1, learn about SINK
by making the rules shown below.
SOL IS SINK
GOLD IS SINK
FOSSIL IS SINK
Both 2 and 3
Which rule(s) are helpful
for solving the problem?
1
2
3
4
Be ready to vote then discuss
after time is up!
Click to undo
your last move
Click to reset
the problem
Inspect state blocks
Inspect rules and objects
Reset the problem
Shortcut: Press the R key
Undo your last move
Shortcut: Press the Z key
As you play, make observations
about problems by asking yourself:
"What do I notice and
what could be useful?"
Some useful things to notice are:
Focus on rules
See a reminder of how a state block works
Sol's friends will ask you
questions during your journey.
Try to help them out by
answering correctly!