AISubs v3.5
The state of emergency declaration due to the spread of the new coronavirus has been lifted,
but the challenge from now on is to restore the stagnant economy and education as soon as possible.
In the meantime, online classes have attracted attention in education.
Instead of going to school, you can take classes at home.
Some universities are actively expanding students' learning spaces using these online classes.
In addition, some schools are distributing class videos.
Children can now study for exams at home without going to school.
These online classes are being established as a new style of education in the future.
So, even in the program, we challenge online classes.
This broadcast is a review of Minecraft, which I learned in July.
This month, I learned programming using Minecraft.
Minecraft is a role-playing game that adventures in a vast world,
but you can play it using programming.
You can manipulate the robot called "agent" in the game with programming, build a house, or plow a field.
In the program, I made a garden using Minecraft.
First of all, let's review how to operate an agent needed to make a garden.
Here is how to manipulate Minecraft characters.
Press "W" on the keyboard to move forward.
Press "S" to switch.
"A" moves you to the left, "D" moves you to the right.
The mouse can attack with the left click and block with the right click.
This is the basic operation of Minecraft. Let's all remember it!
In Minecraft's world, you need a code connection to do programming!
You need it to give orders to agents!
To call an agent, select "jump" from the player menu and change "jump" to "dp".
Then, return the agent to its original position.
In this way, the agent will teleport to you.
To make an agent turn left, select "jump" from the player menu and change "jump" to "l".
Then, change the agent's direction from the agent's menu to the left!
Now, let's review the programming to make a skadan!
It's been a while since I saw someone who can't do it better than me.
This program is provided by CROST of the Programming Learning System.
On the program's official homepage,
you can find web fusion works created by members in the past,
and works created by Scratch.
There is also a post form for viewers, so please check it out!
Now, let's review the programming that actually allows agents to create cadans.
This time, we will plant flowers in this red frame and create a cadan.
First of all, we will move the agent on the yellow block forward
and turn it to the right.
Then, while moving forward, we will plant the flowers behind.
After planting the first row, we will move to the left,
and now, while moving back, we will plant the flowers in front.
Now, let's review this programming.
Creating Cadans in Minecraft!
First of all, let's make the agent have flowers!
Now, in order to plant flowers, let's make the agent have flowers!
First of all, let's press "e" on the keyboard!
Then, various blocks that appear in Minecraft will appear!
And if you click on the flower block in the middle of the screen,
various kinds of flowers will appear!
From this flower, select a flower you like, click on the left,
and move it to the holder below the screen!
Now, we will make the agent have flowers!
Let's click on the cross mark in the middle of the screen to the right of the agent!
Then, you will have a screen where you give something to the agent!
The holder came out!
Then, press the flower you chose earlier with the left click and put it in the slot on the top left and the slot next to it!
That's right, this way!
Making a flower with Minecraft!
Next, let's have the agent plant a flower!
From the player menu, put it in when you enter the "jump" command!
Yes!
And this time, change "jump" to "go"!
Go!
That's cool!
Go!
And this time, we will make a flower by moving the agent along this arrow!
To do that, first of all, to move the agent in the yellow block forward, let's connect "move one block forward" from "agent"!
One block forward!
Next, let's move the agent to the right and program it to go in the direction of the arrow!
Yes!
Let's choose "change direction to the left" from "agent" and change "left" to "right"!
Change this to the right...
To the right...
Yes!
OK!
Next, let's move the agent to the right and move it forward one block and let it plant a flower in the block behind it!
Let's connect "move one block forward" from "agent" to "move one block forward"!
Yes!
And let's change "move forward" to "backward"!
Yes!
backward
Yes! "backward"
Alright, we'll go "backward"!
Once you've done that, let's use that flower for the Agent before!
Select "configure slot number one to work" from the Agent...
yellow one
Let's put the direction under "turn right"!
Alright!
"configure slot number one to work"!
Yes!
Okay!
We put it in!
Turn right under it!
Slot number one is the one on the upper left of the holder screen of the agent we saw earlier.
All you have to do now is repeat the work.
Move the agent forward and move it back.
Repeat this three more times to make the first row of steps.
Yes.
Right click.
Effect.
Structure.
Tomita, can you do it?
Wait a minute, please.
Yes.
Agent...
Nanaka, don't move "forward" to the left.
Forward.
Go for it, Nanaka!
I'm sorry.
It's been a while since I saw someone who can't do it better than me.
Now, let's make the second row of steps.
First of all, in order to move the agent to the second row, slide it to the left without changing its direction.
Connect "move one block forward" from "agent" and change "forward" to "left"!
Put it here and change "forward" to "left".
Yes.
Left click.
Then, select "effect slot number one" at the bottom and change "one" to "two"!
Now that you've done it, let's plant the second row of flowers!
For the second row, go back and plant the flowers in front of you!
First of all, connect "make one block move forward" from "agent" and change "front" to "back" and "one" to "two"!
Make "front" back and make "two", right?
Make "two" back and make "two", right?
Yes!
And to plant flowers in the arrow part, connect "make one block move forward" from "agent"!
Make one block move forward...
Now that you've done it, let's repeat the work!
Make "agent" move one block back and plant flowers in front of you!
Repeat this three times to make the second row!
Three!
Yes, three!
I think we might make a mistake...
The blocks are too long and we might make a mistake!
Right!
If we count the number of "make one block move forward"...
Like this?
Good!
Well, everyone, have you done it?
Yes!
Well, let's see Nanaka-chan's pattern!
I can do it!
Go for it!
Yes!
Oh!
It's done!
We did it!
We'll apply this programming and make four rows of blocks!
In the program, the students devised the current programming and made four rows of cadans.
First of all, let's review the design diagram making necessary for making cadans.
Well then, look at the programming we made earlier.
Yes.
Well, Emily, what do you think this is in terms of the three types of programming?
In terms of the three types of programming...
Can you repeat, please?
Emily, nice error!
What?!
Emily, what are you processing from the top?
I got it!
It's "without" now, "without" now.
"Without" "without"
Pre-processing!
Emily, you're right!
This is processing the commands of the block in order from the top, right?!
Yes, it is!
It didn't work out, did it?
It didn't work out.
Really? It didn't work out?
Yes.
No matter how complicated the programming is, if you don't order it in the order you want it to work, it won't be processed as you want it to be processed.
Therefore, when you make the third and fourth rows, order processing is a basic of basics.
Yes.
Before we do the programming, I'd like you to draw a blueprint for how to make kadans.
A blueprint...
This is the blueprint of the programming we made in the last lesson.
I'd like you to draw a blueprint of how an agent should move like this.
But don't you want to try making an original kadan other than this method?
That's right.
Shinji-kun, what kind of movement is there?
For me, I'd like to go diagonally.
That's difficult.
Is it difficult?
But if you go right, go up, go right, go up...
If you go diagonally...
That's right.
It's difficult whether it can be processed in order.
That's right.
And the students drew the design drawings they wanted.
I want to make it efficient.
Let's see what kind of design drawings they made.
I did it like this.
This is a whirlwind, isn't it?
Yes, if you do it like this...
I thought it wouldn't have to go through the red part, so I thought it would be efficient.
That's great.
It's true.
And here is Emily's design drawing.
I'm going to go through the red part.
I know, even if you don't say it.
This is the only thing I can think of right now, so I drew it for now.
But this rainbow is an "m".
It's "m" for "mirinya".
I think this is fate.
I see.
Next, here is Iori's design drawing.
It goes like this from here...
It bends like this...
It goes like this...
It's like this.
It's complicated!
It looks like there will be more blocks.
I thought I'd give it a try.
And Shinji-kun, here is Nanaka-chan's design drawing.
Nanaka-chan goes through the red frame and moves to the top of the garden.
From there, it looks like she's planting flowers down there.
What kind of aim is it?
On the other hand, take a closer look at Shinji- kun's design drawing.
What does it look like?
It looks like there will be more blocks.
But in fact, this is an alphabet "n" shaped garden.
It looks like she wants to plant flowers on "n" of "nira".
The students programmed the garden based on the design drawing.
Now, let's look back at the garden Iori-chan made.
Looking at the design drawing, it's a little more complicated than others.
Will she be able to process it in order?
Here I go!
Another black rose.
That's good!
Wow!
That's good!
Wow!
I did it!
That's great, Iori-chan!
Let's see how you programmed it and how you processed it!
This is Kadan's programming that Iori-chan made!
The movement is complicated, but the length of the program is considerable!
It shows how difficult it is to process it in order!
First of all, you go forward and use the block to move it back to make the first row!
Then you move it to the right, move it to the back, move it to the right again, and move it forward!
That's how you programmed the complicated movement!
Then you go back, put the block in front of you and make the fourth row!
Once you've come this far, you move it to the left, move it to the front, move it to the left again, and move it back!
By perfectly programming the complicated movement, Kadan as designed was completed!
Preliminary processing to order the agent to firmly describe the movement in my head!
I did it properly!
After this, I will review Kadan making using repetition!
On the official website of the show, we have posted web fusion works made by members in the past and works made by Scratch.
There is also a post form of the viewers, so please check it out!
On July 18th, we applied the current programming.
Using three types of programming, repetition, we made a large Kadan of twelve squares multiplied by twelve squares.
Let's review how we did that programming!
Last time, we made a Kadan of four squares multiplied by four squares!
The most important thing in this Kadan is how to move the agent and how to plant flowers, right?
But, if we make a Kadan of twelve squares multiplied by twelve squares only by repetition,
it will be such a long programming!
To shorten this programming, we will use repetition!
If we make a basic operation with three types of programming, order processing,
we will loop another three types of programming, repetition!
Even if we don't order the same work many times, using repetition will reduce our efforts greatly!
For example, if we use two steps forward programming three times in a row,
two steps forward will be repeated three times, so two times three will be six steps forward!
That's right! If you repeat the basic movement several times, can you achieve the big movement you aim for?
How do you guide the number of repeated movements?
Beyond that, what is asked is the power of mathematics, isn't it?
You're going to do this, aren't you?
That's right! I'm going to study this this time!
It seems like the probability of making a mistake is also going down!
That's right!
It seems like the probability of making a mistake is also going down!
That's right!
Then, let's learn about repeated programming!
Yes!
I'm looking forward to it!
In this class, we're going to apply the programming of making two rows of colors we learned earlier!
This programming increases the color up to the second row!
And, the agent stops at this position!
In order to make the third row, let's start with the programming of sliding this agent to the left!
Then, let's select "move one block forward" from "agent" and change "forward" to "left"!
Left?
Yes!
Left?
You move it to the left, don't you?
Yes!
Change it to the left!
Attach it!
Yes!
Is everyone ready?
We're ready!
Next up is the programming of moving the agent forward two blocks and putting flowers behind it!
Then, let's select "move one block forward" from "agent" and change "forward" to "left"!
Two blocks!
By moving two blocks forward, you can plant flowers in the space behind you!
Oh, I see!
Yes, yes!
Is everyone ready?
Yes!
OK!
OK, then!
From now on, we will use "repeat" to program flowers!
Oh! Finally!
Select "repeat" four times from the "loop" menu!
Yes!
Now, here's a problem!
Oh, problem?
With this "repeat", how far and where can you plant flowers in four rows?
Everyone, try planting a block!
What?
What do you mean?
How do you do it?
Where is it?
Is it here?
I made a mistake!
How do you plant it?
It's like this!
Oh, no!
No, no, no!
It's here!
Oh, no!
Looking at everyone's programming,
The chairman, Shinji and Nanaka put "repeat" under "change direction to the right"!
And Emily and Iori put "make slot number one valid" under it!
Which one is correct?
Now, I will announce the correct answer!
The correct answer is...
Where is it?
"Make it turn right" is below!
It's correct... It's correct... It's correct...
It's correct...
No, it's below...
Oh, it's correct!
Below is up to the bottom of the block!
What?
Yay!
Is it better not to put "slot number" in it?
If you don't put "slot number" in it, the color of the flower won't change when you repeat it!
Oh, like "can you change the color?"
I see, I see...
Oh, like that...
Oh, I'm frustrated!
Fufu...
It's important to think about what kind of work you're going to do over and over again!
Because Iori-chan and Emily-chan's wrong programming didn't have a block to change the color of the flowers!
When you make the third row, you don't repeat the process of changing the color of the flowers, so unlike the first row of flower colors, you make the third row with the second row of flower colors!
When you use repetition, you need to know exactly what work you're going to loop and program it!
The students used repetition to program a large column of 12 squares by 12 squares.
This time, we're not going to use 4 by 4, but 12 by 12 large columns will be programmed.
By changing the number of times you repeat the programming that is the basic operation several times, you can aim for a larger column!
For example, if you change this repetition from 2 to 3, you can make a column of 4 squares by 6 squares!
In addition, you can also make a column by repeating the programming of two rows and 12 squares of flowers on the side six times!
Let's apply repetition in various situations and make a large column!
Now, let's repeat Emily-chan's column!
Looking at Emily-chan's programming, it seems like she wants to make a column of 10 by repeating that programming five times after making a column of two!
Will the agent work properly?
I'll press GO!
Here we go!
Yes!
What kind of flower is it?
It's a tall flower.
Oh, it's a tall flower.
You're looking from quite high up, aren't you?
I'm quite high up.
Wasn't it very difficult to put flowers in?
It was difficult.
Yes, it was.
It was difficult to find a place to change the color of the flowers.
And here is Emily's garden, which was made without mistakes.
The basic operation is to plant pink and white flowers alternately.
Here is the programming.
First of all, I make the first row of kadans 12 times and move to the second row.
Then, I make the second row of kadans 12 times in the same way.
And the remaining ten rows are completed by repeating the programming of making two rows five times.
Yes, it was a strange movement at first.
At first, I repeated it, and I didn't know what it was.
But now I know that I have to make it properly without repeating it.
Yes, it was difficult.
If you repeat "turn right", you'll make a mistake.
That's right. I went to a strange place.
Well done, Emily.
Thank you very much.
Thank you, Kurosata.
Next time, we'll make a piggy bank using micro bits.
Please look forward to it!
What do you want to do if you can't make it?
This program was provided by Kurosuta of Programming Learning System.