VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » Knowledge, science, education » TED-Ed
The Train Heist Think Like A Coder, Ep 4

The Train Heist Think Like A Coder, Ep 4

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
This is episode 4 of our animated series Think Like A Coder. This 10-episode narrative follows a girl, Ethic, and her robot companion, Hedge, as they attempt to save the world. The two embark on a quest to collect three artifacts and must solve their way through a series of programming puzzles. Lesson by Alex Rosenthal, directed by Kozmonot Animation Studio
Date: 2020-08-22

Comments and reviews: 10


The solution is wrong, if we know that in the moment we start the locomotive is under the crane, we just need to program that when you see in the screen a blue arrow +1 to a variable that starts in 0, when you see a yellow arrow, -1 to this variable, when the variable is equal to 10, pulse the button, is much more simple and faster
reply

ight so my guess is the variable is set to 10.
-> assuming the power thingy moves 1 cart closer, minus the variable by 1
= 1:
if ->:
N - 1
else:
N + 1
print(Press the button)
this is python and it doesn't work. this is just how it looks like in my head.
Edit: This was before the hint

reply

# Python implementation
LOADER_POSITION = 0
artifact_position = -10
for arrow in display. generate_arrows):
if arrow == display. RIGHT:
artifact_position += 1
else:
artifact_position -= 1
if artifact_position == LOADER_POSITION:
push(button)

reply

This series is great; I'm at the point where I can figure out the logic of the answers ahead of time, but I don't have the language skills to express it in proper syntax.
It's slow going but maybe some day I'll make something usable

reply

how im like the train:
Me: lets put a really valuable diamond right here so some rebels get it easily
Train: its good I have a button so my really really important cargo can be stolen be rebels

reply

If the artifact powers the train. And they disconnected it from the train. Then how is it able to take them to their next destination? Damnit, ya'll got me thinkin' all logical like, How dare y'all
reply

5: 28 I'm confused. Narrator says to the southeast but the map shows that the forest is at the southwest? Or is the configuration of the map is such that the north is to the east?
reply

Can someone suggest a platform that gives more practice for all these loops, variable, and conditionals. It would be nice if it was as fun as these videos.
reply

Plot twist: the sum may never get to 0. A simple example is that the artifact is at the end of the train and therefore no need to go there.
reply

Hold up how come Hedge could detect the second stone but had to help Adila in episode 3 so she'd tell them where the first one was?
reply
Add a review, comment






Other channel videos