(2 min.)
Log In!
Students Logged In
"Double
Trouble"
Episode 4 ・ Cat Galaxy
Get Ready!
Part 1
Time for a Video!
Let’s make sure volume is turned up and everyone can see before going to the next slide.
Last time on
Star Stuff!
We traveled to the Garden Galaxy station,
where we met Jazmin!
LUZ
VALERIA
She's shy, but she really knows her stuff!
We learned all about sequencing thanks to her.
JAZMIN
Hehe...thanks to you two, I worked up the courage to talk to the rest of my station. They'd been arguing over our stars...
JAZMIN
After I talked to them, everyone agreed to make
all different kinds of garden stars!
With peace back in the station,
Jazmin joined us for the adventure...
LUZ
But as we approached the next galaxy,
a claw tried to hit our ship! Where did we end up now?
LUZ
E
E
E
E
K
!
!
!
Our story continues...
Whew...just managed to dodge that, whatever it was...
VALERIA
That was one of our adorable cat stars! Welcome to the Cat Galaxy station!
???
Hold up, aren't you Ed? We just met at Fruit Galaxy...Why are you here now?
LUZ
Hm? No, we've never met before! You might have met my twin though!
ED?
But yes, my name is Ed—
ED?
AHEM!
???
Um..h-hello?? Oh gosh, more new people...
JAZMIN
Allow us to introduce ourselves! I'm Lem...
LEM
...and I'm Cordy!
CORDY
And we'll take over every galaxy!
LEM & CORDY
Uh...
LUZ
That's right — tremble in fear! We're Wolf's most trusted followers,
on special orders to stop you!
LEM
So you're his sidekicks? We're not scared of you.
VALERIA
You seem confident. But let's see how confident you are
once we drain all the stardust from this station.
CORDY
So you're here to steal from us, huh? That's just like Wolf...
ED
You...! Say one more bad thing about Wolf — I dare you!
LEM
Relax, Lem. Let's head to their stardust reserve and start our mission.
What could they possibly do to stop us?
CORDY
You're right, Cordy! We don't need to worry about these fools. Let's go!
LEM
W-what are we gonna do?!
JAZMIN
Hm...if we restore the galaxy's stars like we usually do,
that would fix the stardust problem. Right?
LUZ
It would help for a bit, but they could just steal that stardust as well.
We need a way to distract them or slow them down.
ED
Um...could we just ask them to stop and give us the stardust back?
JAZMIN
I don't think...actually, wait. That's a purr-fect idea!
While Cordy and Lem are busy draining our stardust...
ED
I'll secretly disable parts of their spaceship! That way, they'll need
to use the stardust they took to power the station's spaceship repair!
ED
I see...they won't be able to leave this galaxy otherwise.
Meanwhile, the three of us can solve puzzles to help restore the stardust.
LUZ
Got it — we'll leave the spaceship to you, Ed. Luz and Jazmin, are you ready?
VALERIA
Ready! Star Transformer, make me a star!
LUZ & JAZMIN
Okay, here's our first puzzle. The Starpad is in the top right — we'll need to turn on this bridge to reach it.
VALERIA
Yeah, we're kinda trapped up here...
not much we can do other than code the bots.
LUZ
Since we need to code two bots this time, figuring out the right sequence of steps is a little more complicated.
JAZMIN
So let's start with the basics:
which of the two bots should move first?
JAZMIN
The Walker?
LUZ
Or the Grabber?
VALERIA
Actually, could both bots start moving at the same time?
LUZ
I'm not sure yet. Let's try some things and see what happens.
JAZMIN
Explore!
Part 2
Think about
this question while you play...
Be ready to vote and then discuss
how you know after time is up!
Which bot should move first?
Play!
Vote before Discussing
Which bot should move first?
Polling...
Responses
2
The Grabber
The Walker
1
3
Both should move
at the same time
Let's Pair Share!
Which bot should move first? Why?
2
The Grabber
The Walker
1
3
Both should move
at the same time
Let's Pair Share!
Which bot should move first? Why?
2
The Grabber
The Walker
1
3
Both should move
at the same time
Learn!
Part 3
Time for a Video!
Let’s make sure volume is turned up and everyone can see before going to the next slide.
Let's use the process of elimination to decide which bot should move first! What would happen if the Walker moved first?
JAZMIN
If the Walker moved first, it could go to button A. That would help turn on the bridge to the Starpad.
LUZ
That might be a good first move — the Walker can't go to any other spot right now.
VALERIA
I'll add that code and then see what happens.
LUZ
...Hmm. The Walker turned on button A, but it made those two bridges collapse, too. Now the Grabber can't go anywhere.
LUZ
Those are called drop bridges — they collapse after being crossed once, so let's be careful about when to use them.
JAZMIN
In that case, let's not move the Walker first. We definitely need the Grabber to move around the puzzle too.
VALERIA
If both bots moved at the same time, the Walker would still cross the drop bridge before the Grabber. That wouldn't work.
JAZMIN
So by the process of elimination, the Grabber must need to move first...but wouldn't the drop bridge still collapse?
LUZ
Yes, but look! There's a regular bridge here that's connected to cube tray B. The Grabber can turn that on!
JAZMIN
I get it. Unlike the Walker, we can code the Grabber to move the cube. That'll help the other bot cross.
LUZ
So first, pick up the cube at position D...
LUZ
...Then drop it at cube tray B. That should turn on the bridge for the Walker!
LUZ
Great! Now that we've coded the Grabber's first steps, let's switch to coding the Walker!
JAZMIN
Oh? Why not just keep coding the Grabber until it's done?
VALERIA
You could try that — but that might be a little tricky. In this puzzle, the bots need to help each other by taking turns.
JAZMIN
I find it easier to code the bots by switching back and forth in the order that they need to move.
JAZMIN
I see. The Grabber just had its turn to move, so now it's the Walker's turn — that's what we need to code next.
VALERIA
I'll switch back to the Walker. Maybe now it can go to button A? Let's try it out.
LUZ
Whoops. The Walker crossed the drop bridge first again, so the Grabber fell.
LUZ
Ah! Right. Since the bots need to take turns,
they also need to wait for each other.
JAZMIN
They can do that?
LUZ
Yep! Since bots can trigger events, like pressing a button, other bots can listen for those events using "wait for".
JAZMIN
wait for
Makes sense. So what event can the Walker "wait for" to make sure the Grabber is done with its turn?
VALERIA
The Walker should wait for cube tray B, since that's what turns on the bridge — then it'll be safe to cross.
LUZ
That's better. The Walker has nothing more to do in this puzzle, so let's switch back to coding the Grabber.
LUZ
What should the Grabber's next line of code be? Let's think.
VALERIA
What should the Grabber's next line of code be?
Think independently before starting poll
Poll Preview
1
2
3
Vote!
Polling...
Responses
What should the Grabber's next line of code be?
"pick up at B"
"drop at C"
"wait for A"
Vote!
Polling...
Responses
What should the Grabber's next line of code be?
Time for a Video!
Let’s make sure volume is turned up and everyone can see before going to the next slide.
Remember, the bots are taking turns. While the Walker finishes its turn, the Grabber has to wait before continuing.
JAZMIN
Right, I'll add that as the next line of code.
But which object should the Grabber wait for?
LUZ
Hmm...not cube tray B or C, since only the Grabber
can use those. A bot can't wait on itself.
VALERIA
Since the Walker ends its turn by pressing button A, we can have the Grabber wait for A.
VALERIA
Now that the Grabber is waiting its turn, what should it do next?
LUZ
The Grabber needs to move the cube to cube tray C. That'll turn on the bridge to the Starpad!
JAZMIN
So it just needs to pick up at cube tray B...
VALERIA
...Then drop at cube tray C. That should be all we need — let's run the code to check.
LUZ
It worked! Thanks to us, the bots learned great teamwork.
VALERIA
Yep, now they know how to "wait for" their turn!
Okay, on to the next—
JAZMIN
wait for
Well well well, looks like your little team
restored one star! Big deal!
LEM
Uh huh...shouldn't you be helping your friend or something?
VALERIA
Oh please! Cordy can handle it on her own.
I'm here for some entertainment!
LEM
Psst, Valeria...I don't know why he's doing this, but isn't it good for us if they're separated? They'll work more slowly that way.
LUZ
Oh! True...
VALERIA
Well Lem, we're headed to the next puzzle...not that
you could solve it. Better hurry up, or we'll leave you behind!
VALERIA
Oh yeah?? Bet I could solve the next one in my sleep,
unlike you three!
LEM
He took the bait so easily...
LUZ (THINKING)
We just need to finish our part here, and Ed will do his.
We're counting on you, Ed!
LUZ (THINKING)
Keep Going!
Part 4
Keep this in mind as you play...
wait for
In today's puzzles, the bots need to take turns helping each other.
Play!
Check In!
Part 5
Lem, I'm done draining all the stardust!
We're about to bring Wolf the biggest haul ever...!
CORDY
Haha, he's gonna be so proud of us! Quick, let's head back to our...
LEM
LEM
...Our spaceship...
CORDY & LEM
IT'S WRECKED?!
Teehee!
ED
YOU...! I should've known you were up to something!!
LEM
Wait...not only that — you three restored all of the galaxy's stars??
CORDY
Yep. We even made a new star!
VALERIA
It's a kitten star...isn't it sooooo cute?
LUZ
How...when did you do that?!
CORDY
Cordy, I sent you a message about it on our Talk-Its! Didn't you read it??
LEM
No, I didn't! I was a little busy because someone
left me to do all the work by myself!
CORDY
Sorry to break this up — but if you two want to leave this galaxy,
you'll have to use your stolen stardust to power the spaceship repair!
ED
Ugh...! Fine! But we'll get you for this — just wait!!
LEM
Mission complete. Thanks again for your help, Ed.
VALERIA
Of course! Those two could learn something about
teamwork from us, don't you think?
ED
Totally. How'd they know where to find us, anyway?
LUZ
I think some people are taking notice of the recovering galaxies...
You might even have a small group of supporters!
ED
But because of that, Wolf is only going to keep a
closer eye on you from here on out. So be careful.
ED
You might not need to worry about those two for a while, though. Look.
ED
LEM
We can't go back to Wolf empty-handed!
C'mon, let's follow them to the next galaxy!
No way. We have a duty to update him on the situation.
Let's go back to his station.
CORDY
But...! Ugh, forget it. We might never leave this place
with how long the line for the repair is!
LEM
Seriously, why are so many of your spaceships broken?!
LEM
We work with cats...You know how it is.
STAR-MAKER
...Coming here was a mistake.
CORDY
Heh...I see. Well then, let's take this chance to head out.
VALERIA
Safe travels! Maybe I'll see you again sometime!
ED
...I have a feeling we will. Bye for now!
LUZ
Oh, we're here! I've heard a lot about this galaxy!
JAZMIN
And I've heard a lot about you. Sorry, but your time is up.
???
Until
next
time...