(2 min.)
Log In!
Students Logged In
"Rough Waters Ahead"
Episode 8 ・ Underwater Galaxy
Get Ready!
Part 1
Last time on
Star Stuff!
We traveled to Recess Galaxy, where we found a station divided into two groups! Half of them supported us...
LUZ
...And the other half supported Wolf!
LUZ
Thankfully, Ed was there to explain the situation.
But we ended up splitting into two groups ourselves...
VALERIA
Ed, Emilio, and I wanted to restore stars and leave quickly. That way we'd avoid being caught by Cordy and Lem.
VALERIA
Brick, Jazmin, and I wanted to settle the arguing at this station, even if it was risky. We had to come up with a plan.
LUZ
In the meantime, we learned more about loops! We saw that code can go before a loop, if it doesn't need to repeat.
JAZMIN
After fixing up the stars, we had our plan — to end the arguing once and for all with a soccer match!
BRICK
Yeah! The star-makers who supported us won the match,
and we made a new bubble wand star!
EMILIO
I'm glad we stayed to resolve the conflict...
but now Cordy and Lem have caught up to us!
LUZ
Our story continues...
Your little group's not getting away this time!
LEM
We're taking you to see Wolf. Don't make this difficult.
CORDY
EEK! It's them again...what should we do??
JAZMIN
I don't know...but I'm sure we can think of something!
LUZ
Maybe we can talk things out!
BRICK
Uhh they're getting closer...! Should we get back in the spaceship?
EMILIO
...No. You all stay here. I'll go.
VALERIA
Valeria...? What are you doing?
LUZ
Hey Cordy, Lem! I'm the leader of this group. I have the bot manual, see?
They can't solve anything without me.
VALERIA
Hey! That's not—
LUZ
Shh. Just go with it.
VALERIA
I'll go with you two as long as you promise to leave the others alone. Deal?
VALERIA
...Ha! We actually weren't sure how to capture all five of you,
so that deal works out GREAT for us!
LEM
You didn't need to tell them that, Lem...
CORDY
But yes, you have a deal. Let's hurry up and leave.
CORDY
Valeria...why??
LUZ
I know you all can do this without me. Good luck.
Valeria
...I don't get it. She's the whole reason we're on this adventure!
LUZ
Luz...I think Valeria is just trying to protect us.
JAZMIN
Yeah. And maybe she feels like we don't need her because of what happened at Recess Galaxy...
EMILIO
I'm just guessing here, but...I might know how Valeria feels. We both seem confident, right? But we don't always feel that way on the inside.
BRICK
I see...I never thought she'd be struggling like that.
Maybe I've been a bad friend...
LUZ
...I don't mean to interrupt, but I saw everything that just happened.
Your friend is important to you, right?
ED?
Ed...! Yes, she is. I don't know what to do anymore...
LUZ
...Okay, got it. I'll go chase Cordy and Lem's spaceship. To convince them to come back, I'll need you to restore the stars here at Underwater Galaxy.
ED
If they see that the galaxy's back to normal,
they'll realize your friend lied — and they'll rush back here.
ED
Thank you, Ed...that's probably our best option right now.
Star Transformer...uh, what was it again...?
LUZ
...Make me a star!
JAZMIN, EMILIO, BRICK
O-okay! We can do this! Look Luz,
there's two bots in this puzzle!
JAZMIN
Yeah, yeah! Do you think we'll need to use loops again?
BRICK
...
LUZ
Um...yeah Brick, I think we'll use one loop here!
EMILIO
I think we'll use...uh, two loops!
JAZMIN
Or maybe we don't need any loops! What do you think, Luz?
BRICK
They're trying to take my mind off things...okay, Luz. Focus.
LUZ (THINKING)
Uh, I don't know yet. Let me think for a bit.
LUZ
Explore!
Part 2
Think about
this question while you play...
How many loops do you
need to solve puzzle 1?
Be ready to vote then
discuss once time is up!
Play!
Vote before Discussing
Polling...
Responses
How many loops do you need to solve puzzle 1?
3
2
1
Zero loops
Two loops
One loop
How many loops do you need to solve puzzle 1? Why?
Let's Pair Share!
3
2
1
Zero loops
Two loops
One loop
How many loops do you need to solve puzzle 1? Why?
Let's Pair Share!
3
2
1
Zero loops
Two loops
One loop
Learn!
Part 3
Err...I think Emilio's right? We only need one loop.
LUZ
Yes! I am!! And I'll explain why as we solve this!
EMILIO
First, let's make sure we understand how everything is connected in this puzzle.
EMILIO
I'll start! I see that the bridge to the Starpad is powered by two things: the cube tray and the counter!
BRICK
We need 3 cubes for the counter and 1 for the cube tray. Thankfully there are 4 cubes on the launcher...
JAZMIN
And that launcher is powered by the target!
JAZMIN
Now, let's think about the purpose of each bot in the puzzle.
EMILIO
The Grabber's purpose is to move the cubes to the counter — we know this since it's the only bot that can pick things up.
EMILIO
The Laser's purpose is to turn on the launcher,
since it's the only bot that can power targets!
EMILIO
That makes sense. Let's start coding the Grabber, then.
What should it do first?
LUZ
First, it should pick up a cube at launcher B...
JAZMIN
Next, it should drop the cube at counter C...
JAZMIN
Then it needs to go pick up another cube...oh!
But we only have 1 line left, so...
JAZMIN
It's looping time! What code needs to repeat?
What code doesn't need to repeat?
BRICK
The Grabber needs to pick up and drop every time it moves a cube, so both lines need to repeat!
EMILIO
Agreed. With this loop, the Grabber can move 3 cubes to the counter. Should we code the Laser now?
LUZ
Yeah! Like Emilio said earlier, the Laser needs to power the launcher. That'll launch up a cube for the cube tray!
BRICK
So what should the code be?
We only have 2 lines to use, so let's think carefully...
LUZ
What should the Laser's code be?
Think independently before starting poll
Poll Preview
Vote!
What should the Laser's code be?
Polling...
Responses
turn
turn
turn
turn
turn
jump to
1
2
3
Vote!
What should the Laser's code be?
Polling...
Responses
turn
turn
turn
turn
turn
jump to
1
2
3
Hm...I thought we might need to loop a turn here since we only have 2 lines, but...
JAZMIN
If we do that, the Laser keeps spinning and launching cubes! Then the Grabber doesn't have enough cubes for the counter.
JAZMIN
Right, so we actually shouldn't repeat the turn here!
The Laser only needs to hit the target once.
EMILIO
In that case, we just need to make the Laser turn around! So...turn twice in the same direction, yeah?
BRICK
Yeah. I'll add another turn clockwise, then run the code.
LUZ
The Laser launched a cube, so I'll move that to the cube tray.
LUZ
Meanwhile, the Grabber moved the other 3 cubes to the counter. We can cross the bridge now!
JAZMIN
And finally, we hit the Starpad!
EMILIO
Brick-tastic! Emilio, how'd you figure out we only needed one loop so quickly??
BRICK
Well to be honest, it was just a guess at first...
EMILIO
But when I thought about each bot's purpose in the puzzle,
I realized my guess was correct!
EMILIO
The Grabber had to do the same task 3 times,
so using a loop there made sense...
EMILIO
But the Laser only needed to launch 1 cube!
That's how I knew using a loop for it would be a mistake.
EMILIO
I see...I suppose there's a time and place for everything, including loops. We should keep that in mind!
JAZMIN
By the way...Luz? Um, are you feeling a bit better now?
JAZMIN
...Yeah, thanks to all of you. I think I'm starting to understand Valeria's feelings a little more, too.
LUZ
She's always been pushing me to try new things, and helping me out along the way. I thought she could do anything...
LUZ
...But maybe that's what made her feel pressured. She wanted to meet everyone's expectations, and be a perfect role model.
LUZ
...I wish I realized this sooner. But now I can reach out to her, like she's done for me. I just need to find the right words.
LUZ
Don't worry, Luz! We'll help you with that!
BRICK
Yeah! And once we restore all the stars here, Cordy and Lem will have no choice but to come back with her!
EMILIO
Right. We'll bring Valeria back, together.
LUZ
Keep Going!
Part 4
Keep this in mind as you play...
In today's puzzles, only some bots will need loops!
Play!
Check In!
Part 5
Hey all, good job fixing up the stars!
I see you even made a new star — that's awesome!
Ed
Yep, we made an oyster star, inspired by the depths of the ocean!
I just hope Cordy and Lem noticed it...
LUZ
Oh, I made sure they did!
They should be arriving at the station any second now!
Ed
Wait! You two already promised you'd leave them alone!
VALERIA
That was based on you claiming to be their leader.
But look, they undid Wolf's hard work all by themselves.
CORDY
Guess they didn't really need you after all, haha!
LEM
No, you're wrong!!
LUZ
Urk?!
LEM
Valeria, I do need you! We all do!
LUZ
...But you restored this galaxy just fine.
I always knew you could do it, Luz...you just needed a push.
VALERIA
Now that I taught you all I know about coding, do you really need me?
I mean, I kinda just got in your way at Recess Galaxy...
VALERIA
Ugh...Valeria, do you think I'm only friends with you because you teach me things? I mean, of course I appreciate that about you, but...
LUZ
I was sad when you left, Val. I don't care if you don't know everything,
or if you make a mistake. I just want you to be here with us.
LUZ
...Is that really enough?
VALERIA
Of course it is! You're our friend!
JAZMIN
Yeah! I know we argue sometimes...but honestly, I missed that.
EMILIO
What they said! I wanna get to know you even more, Valeria!
BRICK
Let me ask you this — why'd you choose me to join you on this adventure?
It's not like I knew a lot about coding back then, right?
LUZ
...I asked you because I believe in you. Plus, I knew we'd have fun together.
VALERIA
Right. And we feel the same about you.
Do we need any more reason to want you to stay with us?
LUZ
LUZ
...Heh. No, I guess not.
VALERIA
...I think I get it now. I always believed others could make mistakes to learn and grow, but I convinced myself that I had to be perfect. To be an example.
VALERIA
...But now I see I can just be Valeria. I'm a human with flaws,
like everybody else. And I'm proud of that.
VALERIA
I'm proud of you too. So...you'll join us again?
LUZ
Of course! Thanks for getting through to me, everyone.
VALERIA
Welcome back!!
EVERYONE
Okay, sorry to break up this emotional reunion, but...
CORDY
We finally thought of a way to capture all five of you!
LEM
...Whoops. But at least we're all together again...by the way, where did Ed go?
LUZ
AHEM! Seeing all the fish stars in this galaxy gave us a brilliant idea! Cordy?
LEM
We got a giant net.
CORDY
A...giant net?
VALERIA
A giant net!!!
LEM
Waaah?!?!
EVERYONE
Until
next
time...