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 recover 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.
At a certain university, they actively expand the learning space of students using this online class.
In addition, classes are also distributed in a certain school.
Children can study for exams at home without going to school.
This online class is being established as a new style of education in the future.
Therefore, even in the program, it is a challenge to online classes.
Today, I will study programming using Minecraft.
I will challenge myself to make a ladder and polish my programming skills.
I want to know now! Aiming programming star!
Hello everyone. I'm Kyoko Gunji, the head of the programming star class.
And Prosta-kun and Prosta-chan. Nice to meet you.
Nice to meet you.
It's lively.
Last time, we all made a ladder, but what are we going to do today?
This time, based on the last programming, let's make an original ladder.
Let's make it.
Yay! Let's do it!
Minecraft is a role-playing game that takes you on an adventure in a vast world,
but you can play it by using programming!
You can control the so-called agents in the game,
and build houses and fields using programming!
You can learn programming while enjoying the game!
There's no textbook that's perfect for an online class like this!
This time, we're going to learn programming using the online textbook provided by Mr. Fusion!
Before we start programming, let's review how to play Minecraft!
Here's how to play Minecraft characters!
Move forward with the W key on the keyboard, switch with the S key, move left with the A key, and right with the D key.
You can attack with the left mouse click, and block with the right mouse click.
This is the basic operation of Minecraft! Let's all remember it!
Code Connection is used to do programming in the Minecraft world!
It's 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 Jump to TP!
Then, let's call an agent to return the agent to its original position!
This way, the agent will teleport to your feet!
Next, to make the agent turn left, select when you input the chat command Jump from the player menu!
Let's change Jump to L!
Next, from the Agent menu,
you can change the direction of the Agent to the left.
And in the last episode, we made Kadan.
Here is the programming to make Kadan.
First, move the Agent on the yellow block forward and turn it to the right.
And move the Agent to the left.
Then, move the Agent forward and plant the flower behind it.
After planting the first row, move the Agent to the left,
and then move the Agent back and plant the flower in front of it.
Let's make four rows of Kadan by applying this programming.
Everyone, do you still have the programming of Kadan you made last time?
Yes, we do.
Then, Emily, what do you think this is in terms of three types of programming?
In terms of three types of programming...repeating?
Emily, nice error!
Emily, what kind of processing is this?
Oh, I got it!
Yes.
Before we start programming, I'd like everyone to draw a blueprint for how to make a card.
This is the blueprint for the programming we made in the last lesson. I'd like everyone to draw a blueprint for how to make a card.
Shinji, what kind of movement is there?
I'd like to go diagonally, but is that difficult?
But if you go right, up, right, up, you can put things diagonally, right?
That's right. It's difficult to process it in order.
That's right. This time, we're going to learn how to process it in order.
Can you tell the agent exactly what you think you're doing?
We're going to polish the basic skills of the three types of programming.
Yes.
First of all, let's think of a blueprint for moving the agent.
For example, if you move forward first, you can move straight forward without turning right.
You can think of various ways to move from the outside to the inside, such as drawing a whirlwind.
It is very important to think about how you want to move first.
Now, let's make a blueprint for everyone's original movements.
But the important thing is whether you can program that movement properly in order.
I want to make this efficient.
That's right. It's easier to process it in order if it's efficient and there's no useless movement.
It's easy to do.
Is this efficient?
It's done.
It's fast.
It's done.
Wait a minute.
It's done.
I want to make it.
Let's see what kind of blueprint the director made.
I made it like this.
This is a whirlwind.
I thought it was efficient because I didn't have to go through the red part.
That's great.
Thank you very much.
Why did you make it this way?
I wanted to make it so that I didn't have to go through the red block.
I wanted to think about the movement of the white block, so I did this.
However, in terms of efficiency and number of blocks, it's a lot, isn't it?
I thought it was quite a lot.
I wonder. I think we'll know if we process it in order.
Yes.
And here's 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.
It's Mirinya's M, so I think this is fate.
I see.
Next, here's Iori's design.
I'm going to go like this from here.
I'm going to bend here.
I'm going to go like this.
It's like this.
It's complicated.
This looks like it's going to have more blocks.
I thought I'd give it a try.
Iori's design looks complicated, but I wonder if she has a simulation in her head of how to process it in order.
I'm going to try to do it without changing the direction of the agent.
I see. It looks like you're thinking about a lot of things.
I'll do my best.
And Shinji, here's Nanaka's design.
Nanaka-chan goes through the red frame and moves to the top floor.
It's like a movement from there to the bottom to plant flowers.
I wonder what she's trying to do.
On the other hand, look closely at Shinji's design.
What does it look like?
It's a place where the line of sight is to plant flowers.
Actually, this is an alphabet N-shaped floor.
It looks like you want to plant flowers on Nira's N.
After this, it's finally time to program the design.
Can everyone process it in order as you like?
This program is brought to you by PLOST, a programming learning system.
Let's use the design I made earlier to program the flowerbed.
I wonder if everyone can process it in order as they like.
I'm looking forward to seeing what kind of flowerbed it will be.
First of all, Emiri-chan, who drew a design in an M-shaped frame.
Let's use the repetition.
It seems that Emiri-chan uses a repetition block that she didn't teach in class to program.
With this repetition, she repeats the work of placing flowers in front of her twice.
On the other hand, Nanaka-chan is...
She's lining up the flowers, but what's wrong?
I'm looking at it now.
You're looking at the flowers.
I'm choosing.
But in the meantime, everyone's programming is progressing.
Oh, no.
Maybe Suzuran is good.
On the other hand, Iori-chan is progressing.
Can you do it with that tone?
I'm going to put it in front of you.
Iori-chan, can you hear me?
Wait a minute.
1,2,3,4,5,6,7,8,9,10
It seems that you are so focused on the process that you can't hear my voice.
And Shinji-kun, who is thinking about the flowers in the shape of N,
Go to the block and put it in front.
It seems that Shinji-kun is checking the order of processing in words.
But it seems that the programming is the most advanced.
I did it.
Did you do it already?
I did it.
That's fast.
Shinji-kun is the best programmer.
How did that N-shaped flower bouquet end up?
After this, everyone's bouquets will be announced.
Original bouquets made in Minecraft.
First of all, the president's bouquet.
As you can see in the blueprint, the flowers are planted in the four corners and the center.
In other words, imagine a bouquet-shaped bouquet.
Did you manage to process it in order?
Then, start.
Start.
It's a big bouquet.
I've done it
It's cute
Somehow, I planted a small flower surrounded by a flower
Ah, you have a good sense
Thank you
How many blocks did you use?
Yes, I used only three blocks, moving and placing
I mainly used these two
Also, I made it by changing the effect of the flower
This is the programming of the chairman, Kadan, who moves like a whirlwind
First, to plant a flower on the lower left, go two blocks and plant a flower on the back
Then, go to the upper left and move to the right to plant a flower
Next, go two blocks to the right and one block to the back to plant a flower
Then, go to the back and move to the left to plant a flower on the lower right
If you can do this, change the type of flower and plant four flowers in the center
As expected of the chairman, you did it in order as you imagined
Next is Emily-chan's Kadan
As you can see in the blueprint, it's a flower image of Mirinya's M
Will she be able to process it in order?
I'm coming
I made it M-shaped, so I made it M
Enter
Will it work?
Oh, it's tall
Oh, is it working?
Oh, it's working
Yes, yes, yes, it's working
It's working
It's done
Emiri-chan, show us from the top
Huh? 4?
It's not 3 flowers, is it 4?
I thought I planted 4
Emiri-chan, nice error
Nice error
Let's see how you programmed it
Emiri-chan, you used the repeat function
Amazing
I used the repeat function
That's amazing, Emiri-chan
But the number of times you repeated was small
Oh, I see
This is the programming that Emiri-chan made
First, you go forward 2 blocks and plant flowers behind
Then, you use the repeat function
You go forward 1 block and plant flowers behind
You repeat it twice
But you can only plant flowers for 3 blocks
If you change the number of repeats to 3, you can plant flowers for 4 blocks
The number of repeats you use after this
Change it from 2 to 3 and try again
I'm going
Enter
3,4,5,6,7,8,9,10
Oh, it's done
It's done
It became more gorgeous
Emily-chan, there was a nice error, but you did it well
After this, I'll announce Iori-chan's Kadan
Black rose again
Next is Iori-chan's Kadan
Looking at the design, it's a little complicated compared to other people
Will she be able to process it well?
I'll do it
Yes
Black rose again
It's good
It's amazing
It's good
It's amazing
It's done
That's great, Yuri-chan
Let's see how you programmed it
It's like this
It's full
At first, I wanted to make the flower bed completely black
But I had to move the blocks
And I had to move it around, so my eyes were a bit dizzy
So, I changed the color of the flowers
I made it easier to understand
Yuri-chan, that's amazing
You couldn't hear my voice when you were programming
I'm sorry I ignored you
That's OK, you were doing your best
Thank you
This is Kadan's programming made by Yuri-chan
The movement is complicated and the length of the program is long
It shows how difficult it is to process in order
First, you go forward and use the blocks to put it behind you to make the first row
Then, you move to the right, move to the back, move to the right again, move to the front
You are programming a complicated movement
Then, you go back and put the blocks in front of you to make the fourth row
When you get to this point, you move to the left, move to the front, move to the left again, move to the back
You are programming a complicated movement perfectly
Kadan was completed according to the design drawing
The movement that I imagined in my head is in order to give an order to the agent
It was done properly
Next is Shinji-kun's Kadan
Looking at the design drawing
It seems to make a Kadan with the image of Nira's N
I wonder if it can be processed in order
Please look forward to the next time
What's going on?
It's N from Nira Shinji!
N! Wow!
It's N!
That's true!
It's N!
N!
I tried to make it cute and pink
Cute!
Shinji-kun is amazing according to the design photo
So let's see how it was processed in order
Let's take a look at the programming.
There was a blueprint, so it was very easy to do.
I see.
There was a signpost.
That's right.
If you draw a blueprint, you can easily understand how to move the agent.
It can be used as a reference for sequential processing.
Shinji-kun, well done.
Thank you.
This is the programming of the addition of the letter N.
Shinji-kun thought about planting flowers from the first step,
and then move to the second and third steps to complete the N.
First, go forward and plant flowers on the bottom left.
Without planting flowers, move three blocks to the right.
Then plant flowers on the bottom right, and the first step is completed.
Next, move to the second step.
In order to plant three flowers in the second step,
first move one block back and move forward twice to plant flowers.
Then move two blocks back and plant one flower.
In the same way, move one block forward and move back twice to plant two flowers.
Move two blocks forward and plant one flower.
If you draw a blueprint, you can organize what kind of work you should do to the agent even if it's a complicated movement at first glance like this.
This is the basis of programming's three types of human skills, pre-processing.
If you master this power, you can apply it in various ways.
The last is Nanaka-chan. Looking at the blueprint, she is making a flower bed by going through a red frame. Will she be able to process it in order?
Here I go.
Oh, oh, oh, oh, it's working.
Oh, it's big.
That flower.
Ah, it's clean.
Ah, but
Oh, great.
Do you think you're doing well?
When you look from the front, I want to be able to see everything,
That's right. It took time to choose the flowers.
Then let's take a look at the program.
It's long.
I can't see the letters.
It looks like a centipede.
Nanaka-chan's pre-processing.
It took a lot of blocks.
I don't know what I'm doing on the way.
That's right.
The part that goes through the red frame and moves is long.
That's why the number of blocks increases.
This is the programming of Kadan, which was made while moving the red frame.
If you make the first row using the programming you learned in class,
You're moving the red frame up without moving the blocks.
And when you move to the fourth row, you're moving backwards and planting flowers in front of you.
If you move from the first row to the fourth row like Nanaka-chan and program,
The order of the pre-processing will increase and the programming will be very long.
When you're programming, efficiency is very important.
But the design that Nanaka-chan envisioned is the tallest flower in the fourth row.
Programming to plant a low flower in front of you.
This is what I wanted to do, so it can't be helped that the pre-processing will be long.
Programming is a means of achieving what you want to do.
First of all, what do you want to do?
It's important to have an idea that springs up in you!
How was today's lesson, everyone?
It was fun!
I was studying programming, but I was able to create the steps and colors of Nanaka-chan's flowers.
I felt like I was in the garden.
That's right.
Minecraft is a game, but you can also express what you think in this way.
Next time, we'll use Minecraft to make a flower bed!
Look forward to it!
This program was brought to you by Prosta, a programming learning system.