(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 bot. And the tall button is called a target.

EMILIO


N-not that I want to help, or anything!!

EMILIO


Right...anyways, let's try coding the laser bot. I'll add the "turn" command...

LUZ


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

LUZ


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

EMILIO


Hmm. 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?
- 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!

Vote before Discussing
Which event should the bot wait for?
Polling...
Responses




Button A
1
2
3
4
Button B
Crate Pad D
Switch E
Vote before Discussing
Polling...
Responses


What does telling a bot mean?
wait for
Wait for a specific signal
Wait for Luz to write more code
Wait for a specific amount of time
2
3
1

Let's Pair Share!


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

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 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! Now it's time to think of ideas 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 laser bots can wait too. Let me add it to the code.

LUZ


I'll make it 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 bot — we want it turn around and hit target D, right?

VALERIA


Yeah. If I stand on the launcher when target D powers it 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! Otherwise 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 bot 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

Let's Discuss! (2 mins)
Discussion Question?




Until next time...

Meanwhile, Sol...

Tinker to understand how BOOM and WEAK work!
- Touch and push objects



- Use blocks to make and break rules
- Pause to read rules
with the Inspector
- Ask, "What do I notice?" after trying something
In problem 1, which of Zorro's observations is the most useful?
- The lava is orange
- There's a lot of snow
- There's a rule for ROCK IS DEFEAT
- Walking on lava seems scary
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!

- What do I notice and what could be useful?
- What is the goal?
- What is blocking me
from the goal? Why?
To understand a problem,
ask yourself these questions:
Once you understand a problem,
plan a solution by asking yourself these questions:
- How can I break this problem into smaller steps?
- What order should I do these steps in?

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:
- Rules that are already
in the problem - New rules you could make with the blocks in the problem


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!

Star Stuff LCR: Lesson 5
By sophiekansmith
Star Stuff LCR: Lesson 5
Template Deck
- 2