AISubs v3.5
In 2020, programming education will be introduced in elementary school classes.
Nowadays, we humans don't need computers.
For children who want to have a future, it's important for them to know how computers work.
To do that, they need to learn programming.
Learning programming doesn't mean changing the world in the future!
So, for the first week of next year, we'll try programming first!
We'll learn programming with games and music!
What is it?
It's a potato!
Programming star! We sing love songs!
So, everyone in front of the TV should prepare tablets and computers and go on a programming journey while having fun with us!
Let's go! Programming star!
Hello, everyone!
I'm Kyoko Gunji, Programming star!
And I'm here to teach you about programming.
Nice to meet you.
Nice to meet you, too.
Ms. Ando teaches programming in more than 100 schools all over the country.
She is a professor of programming, which is very popular now.
Today's guests are...
Shinji Nira, a young man with a young spirit.
Rino Sashihara, a producer of "equal love".
Emiri Ohtani, Yori Noguchi, Hana Oba.
And Nanaka Tomita of "not equal me".
Before we start today's mission, let's review what we've learned so far.
Programming is creating commands.
Algorithm is how to program efficiently.
We've been learning programming using the popular game "Minecraft's Makecode".
"Makecode" is a program that commands a robot called "agent" in the game by using blocks.
How to use "agent" is to press "c" on the keyboard and select "chat command" "jump" from the player menu on the "makecode" screen.
Let's change "jump" to "t".
Next, from "agent" menu, connect "teleport agent to xx direction west" and change "west" to "east".
If you can do this far, click the "execute" button in the lower right.
Press "enter" key and change to "chat screen".
If you type "t", "agent" will appear facing east at your feet.
Next, Shinji-kun, please teach us how to make "agent" move.
Please press "c".
Go to "player" and type "chat command".
Type "f" for "jump" and "agent" for "agent" and move one block forward.
There is a green play button at the bottom right. Please click it.
First, press "enter".
Please press "t" first.
Next, please press "enter" again.
Next, please press "f" for "chat command" and "enter".
Please press "enter" again.
Today's mission is "Let's build a house"!
"equal love" programming is being streamed on Hulu without any cuts! Don't miss their nice errors!
Using Minecraft today as well, we will learn the basics of making codes,
but this mission is to build a house!
We will challenge this mission for two weeks.
To build a house, there is a process of collecting wall materials and making a roof.
Let's build a house step by step!
Before building a house by themselves,
let's see what kind of house you can build in Minecraft!
Wow!
Look at this! This is a skin called "Nobunaga".
Wow!
This is made by our company.
Our staff made it.
Let me show you.
Wow!
Awesome!
Wow! Awesome!
There are clouds, too!
Clouds, too!
Joka-machi reminds me of the Sengoku period.
There is a street view, too.
Wow!
Inside, too.
Wow!
Next, let's go and see the castle.
If you go up, you can see the castle like this.
Wow! It's big!
The castle is... Wow!
Wow! It's so big!
It's a castle! Wow!
You can go inside.
Can we go inside?
So, they decided to go inside.
They went inside.
Inside is like this.
I want it! I want it!
Wow!
You can go inside, too.
It's different dimension.
Will we be able to build it someday?
Yes, you will.
Will we?
We don't build it by hand.
To some extent, we make programming and do it.
Let's take the first step to build a castle like this someday.
Today's study is "Let an agent cut down a tree".
We can't build that castle right away.
Teacher, which house should we build first?
In Minecraft world, we call it "tofu house".
It's a simple square house like tofu.
I think that's the first building to build.
I see.
I want to build it first with that as a goal.
Let's start the first study.
"Let an agent cut down a tree".
In order to build a house, you need a material which is a tree.
What should we do to actually cut down a tree, Sensei ?
Here is a prepared tree.
I'll show you how to cut down a tree with it.
First of all, you bring an agent under your feet.
Tree
Then, the agent will cut down like this.
If you do so, you will destroy the tree in front of you.
Tree
Then, you use a chat command from a new player.
Since it is the first command you do, let's say "one".
One
Let's say "one".
If you do so, you destroy the tree in front of you from an agent.
Destroy
If you destroy it, you can cut down a tree.
Then, you pick up all the material under the destruction of an agent.
Pick up all materials under the destruction of an agent.
It's done.
Then, you execute it.
Then, you have cut down a tree for an agent.
Cut down a tree for an agent
To cut down a tree for an agent, you select it when you input a chat command "jump" from the player's menu.
Let's change "jump" to "one".
If you destroy the tree in front of you from an agent's menu...
Let's connect "pick up all" to an agent.
If you can do it up to this point, teleport the agent in front of the tree you want to cut, and type "1" in the chat screen to cut the tree.
And if you connect "pick up all" to an agent and right- click, you can confirm that the agent has picked up the cut tree.
Pick up all
This time, as a sample, it's a lying tree, but it's better to go vertically, isn't it?
If you break it, I think it's better to go up.
"Agent", yes.
Once you destroy "pick up all" and "pick up all", move "agent" one block up.
Then you can move on to the next action.
However...
"Agent", one block up...
However, just now, I cut the tree like this, but if there is a branch like this, "agent" cannot move,
so before you move up, right-click "agent" and destroy "up" before you move.
Then you can go after destroying the branch, so you repeat this all the time.
This "if it's true, repeat it" is new.
"If it's true, repeat it".
Then what happens is...
Look at me for a moment.
The movement is interesting, so I'll go.
If you do "agent" like this...
Wow!
I can't do it! I can't do it!
I can't do it!
Please come back!
This will go on forever, so I thought of a way to stop it.
So I put in the condition I mentioned earlier.
What I mean is...
As a condition, agent...
If you can confirm the block with the agent, you can repeat it and put it in.
Oh!
Then... I'll try it.
Yes, if you can confirm it.
Then...
If you run out of wood, it will stop.
I'll try it.
Yes.
Now it's one.
One...
Oh! Oh!
Yes.
It's being cut.
Now it's stopped.
Oh! Oh! Oh!
I'm glad! I'm glad!
If you use the condition and repeat it well like this, you can cut wood efficiently.
To cut a tree that is growing vertically...
From the agent's menu in the program earlier...
Connect "make agent move one block forward" and "change forward up".
And...
If there is a leaf growing up, the agent can't move forward...
So, duplicate "make agent destroy forward" and "change forward up".
If you leave it as it is, even if you run out of wood, it will go up...
From the loop menu...
Connect "if true, repeat" and...
From the agent's menu in the "true" section...
Connect "make agent move one block forward" and "change forward up".
If you can do it so far...
Before you cut the tree you want to cut, you can teleport the agent.
Teleport the agent in front of the tree...
If you type "one" in the chat screen...
It will cut you until you run out of wood!
Yes, repeat.
It's done!
Lastly, like this...
Let's start with Hana-san who said it's done.
t
Ah, this is it.
Type "t" here.
t
Enter!
Yes, it's done.
And now, "one".
Is that how you do it?
And now...
Press "one".
Just press "one".
Enter!
Wow!
It's done!
Wow!
Is it paused?
Ah, it's paused!
It's paused!
It's hard to see.
It's programmable, isn't it?
Wow!
I'm happy!
Now that you've done it up to this point...
The next study is...
Let's pile up the cut wood!
We're going to create a program to have you pile up the wood you've just cut up to the agent.
Yes.
First of all, call the agent to your place.
When you click, the agent's item box will open.
Let's transfer the rest of the wood to your own possession.
For example, there is something like this.
Some people have dynamites.
Oh, dynamites.
This one up here is the agent's.
The one below is your own possession.
The agent's item box has a slot from 1 to 27.
Slot?
It's called a slot.
In short, it's where you put it in.
There is a case where you set a number and put it in later, so please remember.
You have 27 kinds of them.
I see.
This time, you only have wood in your possession.
Yes.
If you have two kinds of wood, you can put it in here and here.
Yes.
Please remember that.
Yes.
Now, there are 10 lyrics here, so you just need to repeat them 10 times.
Let's create a program with this.
Chat command.
This is the second program, so I'll set it to 2.
Yes.
2.
If you move one agent up, you can move it below the agent.
You can move it below.
Yes.
If you move one agent up, you can move it below.
Yes.
You have 10 of them, so please count them yourself.
In addition, if you have several kinds of wood, as I said earlier, you basically put the first one in this item box.
You can put two of them in this item box, but I think you can put two of them in this item box.
If you run out of wood in this item box, please put in the next one in this item box.
I'll give you one command.
To agent.
It's all the way down there, but it's like this.
There's something called "moving while putting it in", but I'll bring it here and put it in while moving it in.
If you run out of items, use the next item.
It's "gi" now, but I'll make it "shi". This is "on" and "off".
If you run out of items, use the next item.
Like "gi" and "off".
That's why I'm doing it.
Wow, you're a great genius.
Like this.
To make the agent pick up the cut wood,
Select "chat command" "jump" from the player's menu.
Let's change "jump" to "gi".
From "agent"'s menu, move "agent" one block forward.
Let's connect "agent" to "put it behind".
And "front" up. "behind" down.
Next, from "loop"'s menu, pinch it four times in a row and input the number of wood "agent" has.
Once you've reached this point, add "settings" from "agent"'s menu.
Move "agent" and "put it behind" and connect "gi" and "off".
Move "agent" and "put it behind" and if you run out of items, change them to "use next item".
Also, change "gi" to "shi".
By connecting these blocks, once you run out of slot "one", you can stack up items in slot "two".
And, once you run out of slot "two" in chat screen, agents will stack up blocks in slot "one"!
If you can do it this far, today's work! Let's compete who can stack up the most blocks!
In Hulu, there is a popular game that has more than 100 million people registered in the world, Minecraft!
We are delivering original contents that learn programming functions of that educational version! Watch it!
Now that the study is over, next is work!
Yes!
Everyone, we just created a program to cut down and stack up blocks,
and we will compete who can stack up the most blocks!
This is going to be hot!
The time limit is 3 minutes!
3 minutes?!
Yes!
When the time is up, everyone will stack up the blocks and the one who can stack up the most blocks,
in other words, the one who can stack up the most blocks, will win!
Please do your best!
Any block is fine, right?
Any block is fine, teacher?
Any block is fine!
Understood!
Well then, let's start!
Ready, start!
Yes!
I won!
The stack-up competition has started at once!
Will everyone be properly instructed by the agent?
Why can't I stack up?
Looking at Emily-chan…
Why can't I stack up?
If you can stack up, stand up!
The direction and standing position is important!
The standing position of the tree is important!
As expected of the students!
Let's start stacking up the first block!
And Nanaka-chan, too!
Oh, I did it!
Meanwhile, Hana-chan…
Oh, like this!
Stack up the tree like this!
And?
And when it's done, use the transport…
The agent isn't paying attention and hasn't stacked up a block yet!
Iori-chan is…
Oh, it's not east here!
Agents always turn eastward, so be careful when you stand up!
There's only a little time left!
Agents, please turn in the direction of the trees!
Agents!
Like this!
It's here! Come here!
Oh, it's here!
Oh, it's not! It's not! It's not!
Who collected the most trees?
"=LOVE" programming is being streamed uncut on Hulu!
Don't miss their nice errors!
Who collects the most trees?
Who will collect the highest number of trees?
We'll collect them all at once!
Did you put numbers in the chat command?
Yes! It's "two"! "One" means we're cutting down the trees!
Yes!
Agents, please collect them all!
Why are you standing up?
Sensei, I made a nice error!
What do you mean?
Shinji-kun, nice error!
Agents didn't put them up, but side by side!
What's that?
Look at me!
Is it here?
Don't put "forward" up!
That's right! It's "forward", so as you said...
I'm sorry!
Let's put it up from there!
Let's put it down!
Yes!
Down!
Yes!
Let's put it up at a right angle!
Yes! Let's do it!
Let's put the rest of them...
Yes!
It's up!
There's a lot of them!
Oh, it's blue.
The one we saw earlier...
Oh, it's blue.
Shinji's program didn't stack up the trees because this part was facing forward.
To stack up blocks, you need to move one agent block up and place the tree down.
Everyone, be careful when you're programming!
How many trees did the others stack up?
Wow!
Fifty!
I found it!
It's like a hidden technique.
What is it?
While the agent is programming, you find other trees.
Oh, I thought of that!
I see!
Oh, you can do that!
Wow!
If you do that, you can stack up a lot of them.
Wow!
You call them right after you're done.
That's right!
Wow!
It's a sign of your growth!
Yes.
So, the winner is Emiri!
Emiri! Congratulations!
As you can see, the others' results are as follows.
Iori-chan came in second place.
Hana-chan didn't get any points at the end.
Review of the day!
This time, we made the agent cut down the trees!
To make the agent cut down the trees,
select "jump" from the layer menu.
Let's change "jump" to "one"!
From "agent" menu, destroy "front" to "agent" and...
connect "pick up all" to "agent"!
If you can do this, you can teleport "agent" in front of the tree you want to cut and type "1" in the chat screen to cut the tree!
And if you press "right click" with "agent" and "cursor" together, you can confirm that "agent" has picked up the tree you cut!
At wooroo, you can learn the educational programming functions of the popular game "minecraft" that has more than one million people registered in the world and delivers original contents!
This program was brought to you by prosta, a programming learning system.