AISubs
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.
In a certain university, students are actively using online classes to expand their learning space.
In addition, classes are being streamed in a certain school.
Children can now study for exams at home without going to school.
This online class is being established as a new style of education.
Therefore, even in the program, it is a challenge to online classes.
This broadcast is a review of Minecraft, which I learned in July.
I want to know now! Aiming programming star!
This month, I studied programming using Minecraft.
Minecraft is a role-playing game that adventures in a vast world, but you can play it using programming.
You can use programming to control a robot called an agent in the game to build a house or a field.
In the program, I made a garden using this Minecraft.
First, let's review how to operate the agent needed to build a garden.
Here is how to operate Minecraft characters.
Move forward with the W keyboard and switch with the S key.
Move to the left with the A key and the right with the D key.
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.
Code connection is used to do programming in the world of Minecraft.
It is necessary to give orders to agents.
To call an agent, first select when you input the chat command jump from the player menu.
Let's change the jump to TP.
And let's connect the agent from the agent to your position.
In this way, the agent will teleport to your feet.
Next, to make the agent turn to the left, select when you input the chat command jump from the player menu.
Let's change the jump to L.
Next, connect the agent from the agent menu to the left.
After this, we will review the programming to make an order.
I haven't seen anyone who can't do it better than me.
I haven't seen you in a long time.
This program is brought to you by PLOS, a programming learning system.
On the official website of the program,
you can find works of Web Fusion created by members in the past,
as well as works created by Scratch.
There is also a post form of the viewers, so please check it out!
Now, let's review the programming to make a flower bed for an agent.
This time, we will plant flowers in this red frame to make a flower bed.
First, move the agent on the yellow block forward and turn it to the right.
Then, move it forward and plant the flower behind it.
After planting the first row, move it to the left.
Now, move it back and plant the flower in front of it.
Now, let's review this programming.
Making a flower bed in Minecraft!
First, let's make the agent hold the flower.
Now, to plant the flower, let's make the agent hold the flower.
First, let's press the E key on the keyboard.
Then, various blocks that appear in Minecraft will appear.
And in the middle of the screen,
if you click on the flower block, various kinds of flowers will appear.
Oh, the flowers appeared!
Oh, that's right!
From this flower, select the flower you like, click on the left,
and move it to the holder below the screen.
Tulip and...
Button and...
Now, let's make the agent hold the flower.
Now, let's put the chosen flower in the slot on the upper left and the slot on the right.
We made a flower in Minecraft.
Next, let's make the agent plant the flower.
Let's put the jump command when you input the jump from the player menu.
Now, let's change the jump command to GO.
Now, let's make the flower by moving the agent as shown in the arrow.
Now, let's make the agent move one block forward.
Next, let's make the agent move to the right.
Now, let's change the direction from the agent to the left and the direction to the right.
Next, let's make the agent move one block forward and plant the flower in the slot on the back.
Now, let's make the agent move one block forward and plant the flower in the slot on the back.
Now, let's change the direction from the agent to the right and the direction to the left.
Let's put it in the back.
Now, let's use the flowers we gave to the agent.
Choose the slot number 1 from the agent and put it under the direction to the right.
Let's put it in the back.
The slot number 1 is on the top left of the agent's screen.
Now, let's repeat the work.
Move the agent forward and put it behind.
Repeat this three more times to make the first row of flowers.
Tomita-san, are you done?
Please wait a moment.
Nanaka-chan, don't change the direction from the agent to the right and the direction to the left.
It's in the front.
It's been a long time since I've seen someone who can't do it better than me.
Now, let's make the second row.
First, slide the agent to the left without changing the direction to move the agent to the second row.
Next, slide the agent to the left without changing the direction to move the agent to the second row.
Now, let's plant the second row of flowers.
In the second row, move the agent to the left without changing the direction to move the agent to the second row.
First, connect the agent to move one block forward and move the agent to the back.
Change 1 to 2.
And to plant flowers on the arrow part, connect the agent to move the block forward.
If you've done this far, let's repeat the work now.
If you move the agent to the back one block, you can plant flowers in front.
Repeat this three times to make the second row.
Three.
Yes, three.
I think I'm going to make a mistake.
The block is too long to make a mistake.
If you count the number of blocks you can move forward, it's OK.
OK.
Are you ready?
Yes.
Let's take a look at Nanaka's flower arrangement.
I'll do it.
Go for it.
It's done.
It's planted.
It's done.
After this, we will apply the current programming.
Let's review how to make a four-row flower bed.
On the official website of the program,
you can find the works of Web Fusion created by the members in the past
and the works created by Scratch.
There is also a post form of the viewers, so please check it out.
In the program, we devised the current programming
and made a four-row flower bed for all the students.
First, let's review how to make a blueprint for making a flower bed.
Let's take a look at the programming we just made.
Emily, what do you think this is in terms of three types of programming?
In terms of three types of programming...
Repeat?
Emily, nice error!
Emily, what kind of processing are you doing on top of this?
Oh, I got it!
I'm not doing anything right now.
No, not that!
No, no, I'm just preparing.
Emily, correct answer!
This is processing the order of the blocks in the order from the top, right?
That's right.
It's not happening anymore, isn't it?
Is that so?
It's not happening anymore?
Yes.
Programming can only be processed in the order in which it wants to move, no matter how complicated it is.
So, when you make the third and fourth rows, the order of processing is the basic of the basics.
Yes.
Then, before programming, I'll have everyone draw a blueprint to make a pattern.
Oh.
Blueprint.
This is the blueprint of the programming we made in the last class.
I'd like you to draw an arrow on how the agent should move like this.
But don't you want to try making an original pattern other than this way?
Certainly.
Yes.
Then, Shinji, what kind of movement do you have?
I'd like to go diagonally.
Oh.
That's difficult.
Is it difficult?
But if you go right, go up, go right, go up, you can put things diagonally.
Oh.
That's right.
Ah.
So, it's difficult to say whether it can be processed in order.
That's right.
And the students drew the blueprint they wanted.
I want to make this look efficient.
Then, let's see what kind of blueprint was made from the director.
I made it like this.
This is swirling.
Yes.
Oh.
Ah.
I thought it would be efficient because I didn't have to go through the red part.
That's great.
Oh.
That's great.
And here is Emily's design.
I'm going to go through the red part.
I understand.
I only have this in my head right now, so I drew it for the time being.
But the order of this road is M.
Mirinya's M.
I think this is fate.
I see.
Next, here is Iori's design.
Go like this from here.
Bend here.
Go like this.
Like this.
It's complicated.
It looks like there will be more blocks.
I thought I'd give it a try.
And here is Shinji's design.
Nanaka-chan goes through the red frame and moves to the top step.
It looks like a movement to plant flowers from there.
What kind of aim is it?
On the other hand, take a closer look at Shinji's design.
What does it look like?
It's a place where a car line plants flowers.
In fact, this is an alphabet N-shaped flowerbed.
It looks like it wants to plant flowers in the N of Nira.
The students programmed the flowerbed based on the current design.
Let's look back at the flowerbed Iori-chan made.
Looking at the design, it's a little more complicated than the others.
Will it be possible to process it in order?
Here I go.
It's a black rose again.
Nice!
It's great!
Wow!
It's great!
Oh!
Oh, wow!
I got it!
Wow!
Great!
Good for you!
You're awesome, Iori-chan.
Let's see how she programmed it.
This is the programming of Kadan made by Iori- chan.
The movement is complicated, but the length of the program is considerable.
It shows the difficulty of processing in order.
First, go forward and use the block to put it behind to make the first row.
And move to the right, move to the back, move to the right again, and move to the front.
I'm programming a complicated movement.
And while going back, put the block in front and make the fourth row.
If you can do this, move to the left, move to the front, move to the left again, and move to the back.
I programmed the complicated movement perfectly and completed the pattern as designed.
Preparatory processing to order the agent to make the movement that I imagined in my head.
After this, let's review how to make patterns using repetition.
On the official website of the program, you can find the works of Web Fusion and Scratch made by the members in the past.
There is also a post form of the viewers, so please check it out.
In the broadcast on July 18th, we applied the current programming.
We made a large pattern of 12 squares multiplied by 12 squares using the three types of programming, repetition.
Let's review how to do this programming.
The last time we made a pattern of 4 squares multiplied by 4 squares.
The most important thing was how to move the agent in this pattern and how to plant the flowers.
But if you make a pattern of 12 squares multiplied by 12 squares this time using only repetitive processing,
it will be such a long programming.
We use repetition to shorten this programming.
If you make a basic operation using the three types of programming,
you can loop the work by repeating the other three types of programming.
Even if you don't order the same work over and over again,
using repetition will greatly reduce the effort.
For example, if you use the two-square programming three times in a row,
the two-square programming will be repeated three times,
so you can move 6 squares by 2 × 3.
How many times you repeat the basic movement,
you can achieve the big movement you aim for.
How do you guide the number of repeated movements?
From there, it is the power of math that is asked.
Do you do this?
That's right.
I will study this this time.
The probability of making a mistake seems to go down.
Certainly.
That's right.
The probability of making a mistake seems to go down.
That's right.
Then, let's learn the repeated programming.
Yes.
I'm looking forward to it.
In this lesson, we will apply the programming to make two rows of colors that we learned earlier.
This programming grows flowers 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 to slide this agent to the left.
Then, choose to move one block to the front from the agent and change the front to the left.
Left.
Left?
Move to the left.
Yes.
Change to the left.
Attach.
Yes.
Is everyone ready?
OK.
Next, let's learn the programming to make two blocks in front of the agent and make flowers in the back.
Then, choose to move one block to the front from the agent and change the front to the right.
Two blocks.
If you complete two blocks, you can plant flowers in the back space.
Oh, I see.
Yes, yes.
Is everyone ready?
Yes.
OK.
Then, from now on, we will use the loop to program to plant flowers.
Finally.
Select 4 times from the loop menu.
Yes.
Now, here's a question.
Oh, a question?
I wonder how far this loop can be used to plant flowers.
Everyone, try planting the blocks.
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?
Like this.
Oh, no, no, no.
Oh, no.
No, no, no.
Here.
Looking at everyone's programming, the chairman, Shinji-kun, and Nanaka-chan put the loop under the block to change the direction to the right.
And Emily-chan and Iori-chan put the loop under the block to make the slot number 1 valid.
Which one is the correct answer?
Then, I will announce the correct answer.
The correct answer is...
The one to the right is bottom.
It sounds correct.
The bottom is at the bottom of the block.
Yay.
Is it better not to put a slot number here?
If not, the color of the flowers will not change when you repeat it.
Oh, like you can't change the color.
I see.
Is that so?
Ah, I'm frustrated.
It's frustrating!
It's important to think about what kind of work to repeat.
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 you make the third row with the color of the second row, unlike the color of the first row.
When you use repetition, you need to know what kind of work to loop and program it.
The students used repetition to program a large flower bouquet of 12 squares multiplied by 12 squares.
This time, they will make a large flower bouquet of 12 times 12, not 4 times 4.
How many times do you repeat the programming that is the basic operation? By changing the number of repetitions, you can aim for a larger flower bouquet.
For example, if you change this repetition to 2 to 3, you can make a flower bouquet of 4 squares multiplied by 6 squares.
In addition, you can also make a flower bouquet by repeating the programming of two rows and 12 squares on the side 6 times.
Let's make a large flower bouquet by applying repetition in various situations.
Let's look back at the flower bouquet that Emily- chan made.
When I look at Emily-chan's programming, it seems that she wants to make a flower bouquet of 10 rows by repeating the programming 5 times after making a flower bouquet of 2 rows.
I wonder if the agent will work properly.
Press 5.
Let's go!
What kind of flower is this?
This is a tall flower
Oh, a tall flower
You are looking from quite high
I'm climbing quite high
Wasn't it very difficult to find a place to put flowers?
It was difficult
Yes, it was
It was difficult to find a place to change the color of flowers
And here is Emily's flower bed that was made without mistakes
The basic operation is to plant pink flowers and white flowers alternately
Here is the programming
First, the first row of flowers is made 12 times
After moving to the second row, the second row is made 12 times in the same way
And the remaining 10 rows are completed by repeating the programming of making 2 rows 5 times
Yes, the first variable movement
I made it a repetition, and I didn't understand it at first
Here, I understood that it was made properly without repeating
Yes, it was difficult
If you make a mistake by repeating the programming of making 2 rows 5 times, you will make a mistake
Yes, I went to a strange place
Emily, you did well
Thank you
Thank you, Prost
Next time, we will make a piggy bank using micro bits. Please look forward to it
What do you want to do if you don't have money?
This program was brought to you by Prost, a programming learning system.