(2 min.)
Log In!

Students Logged In




"A Recipe
for Success"
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 steal all the station's stardust!

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






go to




A
D
wait for




A
wait for




go to




B
And I broke Cordy and Lem's spaceship! Just a bit, so they'd have to power the spaceship repair with the stolen stardust!

ED







LUZ

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.

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 that.
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


And they ordered everyone to stay put until they reach 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...
it's not as easy as you think!
EMILIO



Oh, you're on. If we make an awesome new star, will you admit you're wrong?
VALERIA



Uh...I mean, yes, of course! I know I'm right!
But if you try it and give up, you three have to admit you're wrong!
EMILIO



Oh, stars. Valeria's gotten us into another situation...
LUZ



But you've got a deal, Emilio. 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!! You really think
you can make it all the way to the Starpad?

EMILIO




Sure we can. Hey, is that a new kind of bot?

LUZ




I wonder how it works...looks like it's
powering that tall button somehow!

JAZMIN



...You look like you really want to say something, Emilio.

VALERIA









Oh, nothing, 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 you, or anything!!

EMILIO










Right...then let's try coding the Laser.
I'll add the turn command...

LUZ

turn





Looks like I need to choose a direction.
I'll pick "clockwise" for now, and we can test it out.

LUZ










Hah! I see a problem with your code...but do you?

EMILIO





Uh...maybe I should've 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



D


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?
- The Laser turned the wrong way
- The bridge turned off too early
- Target D isn't on yet
Be ready to vote then
discuss once time is up!



Play!
Vote before Discussing
What's the main problem with Luz's code?
Polling...
Responses


1
3
2
The Laser turned
the wrong way
Target D isn't on yet
The bridge turned
off too early




Let's Pair Share!


What's the main problem with Luz's code? Why?
1
3
2
The Laser turned
the wrong way
Target D isn't on yet
The bridge turned
off too early




Let's Pair Share!


What's the main problem with Luz's code? Why?
1
3
2
The Laser turned
the wrong way
Target D isn't on yet
The bridge turned
off too early




Learn!
Part 3


You're right, Valeria. The main problem is the bridge turning off too early — we can't do anything if we're stuck here.

LUZ




If I make the Laser turn the other way, the bridge
still turns off — so the direction isn't the problem.

LUZ











As Jazmin suggested, I do think we need to hit target D eventually since it's connected to that launcher...

LUZ



D




But that'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 when I make mistakes
trying a new recipe. It goes like this...

EMILIO










Step 1: Understand the problem!

EMILIO

Problem-Solving Steps
1. Understand the problem
- What happened?
- Why is that a problem?
- What happened?
- Why is that a problem?


When I see something go wrong, I ask myself:
What happened? Why is that a problem?

EMILIO

Problem-Solving Steps
1. Understand the problem
- What happened?
- Why is that a problem?
- What happened?
- Why is that a problem?


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

Problem-Solving Steps
2. Plan a solution
- What do we want to happen instead?
- How can we do that?


After describing the problem, I ask myself:
What do I want to happen instead? How can I do that?

EMILIO

Problem-Solving Steps
2. Plan a solution
- What do we want to happen instead?
- How can we do that?
- What do we want to happen instead?
- How can we do that?


Hm...so, our problem is the bridge turning off too early.
What do we want to happen instead?

JAZMIN











I want the bridge to stay on until I'm done crossing it...

LUZ





Since target C powers the bridge, I want the Laser
to stay where it is while I cross.

LUZ



C

And how can we do that?

JAZMIN





Could we make the Laser "wait for" something while Luz crosses the bridge? Right now it turns too soon...

VALERIA

wait for




And when a bot does something too soon,
we usually need a "wait for" before that line of code.

VALERIA

wait for



Good idea. I'll add it before the turn...

LUZ







And I'll make the Laser wait for switch E,
since it's the only thing I can interact with over there.

LUZ






Okay! You have your plan, so it's time for step 3:
try the solution! Run the code and see what happens.

EMILIO



Problem-Solving Steps
3. Try the solution
Our plan worked! The Laser is waiting, so I have time to cross.

LUZ







And if I flip switch E, the Laser 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



Problem-Solving Steps
4. Reflect on the solution
Cool. Let's keep coding the Laser — we want it to
turn around and hit target D, right?

VALERIA



D

Yeah. If I stand on the launcher when target D powers on,
I'll get launched 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










It should go the same way as the first turn! If the Laser
turns the opposite way, it'll just turn back to target C.

JAZMIN


C

That makes sense. I'll choose clockwise
and run the code again.

LUZ





I just need to make sure I'm 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

Problem-Solving Steps
1. Understand the problem
- What happened?
- Why is that a problem?


Target D powers both the launcher and the elevator.
So when I got launched over here, the elevator went up.

LUZ



D

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

Problem-Solving Steps
2. Plan a solution
- What do we want to happen instead?
- How can we do that?


We want to bring the elevator 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 down?
Think independently before starting poll
Poll Preview





Vote!
How can we bring the elevator down?
Polling...
Responses






4
Either
2 or 3
Add
3
turn




Add
2
turn




Add
1
wait for
Vote!
How can we bring the elevator down?
Polling...
Responses






4
Either
2 or 3
Add
3
turn




Add
2
turn




Add
1
wait for
We can't stop the elevator from going up, since it turns on at the same time as the launcher. So "wait for" won't help here.

VALERIA



wait for

But we can make the elevator come back down —
we just need the Laser to turn away from target D.

LUZ



D

Oh...right! After Luz uses the launcher to reach the top,
we don't need target D to be on anymore.

JAZMIN





D
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...it would be boring
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 done something new in a while.

LUZ (THINKING)











But it's clear he's done a lot of problem-solving. 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 any more bugs,
we can just follow those 4 steps again!

LUZ










Keep Going!
Part 4


Keep this in mind as you play...
Follow these 4 steps
to help you debug:
3. Try the solution
4. Reflect on the solution
2. Plan a solution
What do we want to happen instead?
How can we do that?
1. Understand the problem
What happened?
Why is that a problem?



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 while Wolf takes over the universe!
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 something to be ashamed of. Learning from mistakes is how we 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 create pixel art?
I don't usually play it, but I love watching other people play!
JAZMIN




Yeah! I get that, it's fun to see what other people come up with.
We should all play together sometime!
LUZ



Sounds fun. C'mon, let's keep talking as we head to the next galaxy.
VALERIA



Wow, it's my first time going to another station! I can't wait to—
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 recent 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...
Star Stuff LCR: Lesson 5
By sophiekansmith
Star Stuff LCR: Lesson 5
Template Deck
- 217