AISubs v3.5
Fall of learning! Programming classes are officially starting!
Programming classes that make classes more fun and deeper by using computers and tablets!
If you have 100 people, you can give 100 answers! The answer is by no means one!
Programming is like a magical toy box! Doesn't it make your heart flutter?
So, at PROSTA, we provide you with useful information that will make your heart flutter many times over!
The catchphrase is "Now is the time to know!"
Programming is actually deeply embedded in our lives!
The fireworks of that Amuro Namie are also being launched through programming!
A tour of society of that company that everyone wants to know about!
Create a homepage with programming!
Programming stars who changed the world with the power of programming are also appearing one after another!
PROSTA members will challenge programming-only!
The road to passing might not be easy!
Now, let's have fun learning while having fun!
This time, it's a review of November!
"Now is the time to know!" Aim for programming star!
Now is the time to know!
Programming education, which has been concentrated in elementary school since 2020,
will be concentrated in middle school students from the coming 2021, and programming education will be concentrated in high school students' classes from 2022.
So, what kind of programming education is being done in middle school?
We investigated the actual programming education of middle school students who are doing programming education ahead of compiling and compiling.
On this day, we decided to exclude what is being done in the initial stages of programming thinking,
which is a programming class that first-year middle school students do using Scratch.
Now, when the Raspberry Pi is switched on, a screen like this will appear.
Now, we would like to make a game using Scratch.
Speaking of Scratch, it is a programming software that even beginners who have become familiar with it can easily handle.
Now, Hitomi Suzuki and Hana Ogi are studying hard to pass the exam.
In conventional programming, you would use a source code to give an order to your computer,
but in Scratch, you can just line up blocks with instructions written in Japanese and give instructions to your computer.
It is an excellent software for children to learn programming.
At Shukutoku SC, they will try making a game using Scratch in the first year of middle school and learn the basics of programming.
Okay, let's get started.
So, what we're going to do is, we're going to make it look like a cat is moving its right foot and left foot, like it's walking.
Scratch's basic operations. Number one, make the character move like it's walking.
We've made a variety of programs that make characters move,
but with Scratch's programming, just by clicking the green flag and moving it by ten steps,
it doesn't look like it's walking just by moving one picture ten steps to the right.
Therefore, in Scratch, costumes with the character's right foot forward and two costumes with its right foot slightly backward are prepared in advance,
and in addition to the current movement code, if you switch each other with Parapara Manga's method, it will look like it's walking.
Are you done?
Yes.
I'm done.
Yes.
Every time you click it, it looks like a cat is walking.
Is it okay?
This is the one I learned first.
It brings back memories.
Let's go to the next one.
Let's make a maze together.
From now on, we will study programming in practice while making games.
This is a sample we made.
If you move the keyboard up, down, right and left with the keyboard, the cat will start moving.
That's right.
Wow, it's already programmed.
This programming seems difficult.
In today's lesson, students will actually play the sample maze created in advance while looking at the code.
We will play and check what kind of movement instructions are given by the codes created.
Now, let's take a look at the script of the maze that everyone in the first year of middle school is checking.
Seven codes prepared as samples.
The lower four on the left are instructions to move the character ten steps in the direction of the arrow on the keyboard.
In Scratch, instead of the north-southwest as a reference of direction, the top of the screen is 0 degrees,
and the right side is 1 to 180 degrees, and the left side is -1 to -180 degrees.
In other words, when you want to go straight up, it's 0 degrees, when you want to go right, it's 90 degrees, and when you want to go straight down, it's 180 degrees.
To go in the left direction, you don't need to change direction 270 degrees from 0 degrees to the right, so you can go in the direction of -90 degrees.
And the code on the upper left of the sample is the code that moves you to the starting position.
The x coordinate is the positional line that divides the maze in the horizontal direction, and the y coordinate is the positional line that divides the maze in the vertical direction.
In this case, the x coordinate is -226 and the y coordinate is -159,
so you move to this position where both positions collide and declare the start.
Then, there are two codes on the right side that remain,
and the upper row indicates that when the character hits the green wall after the start, push back -5 steps,
and the lower row indicates that if you touch the red goal, you declare the goal.
Having understood the basic block code of this maze…
So, instead of asking you to make everything from scratch,
now that we have this base, as a team, we'd like to decide what color we want the background to be and what we want the maze to be.
First of all, can you become a group for each team?
Yes.
From now on, you will be divided into two groups and challenge to make a maze.
By challenging one project with your friends, you will learn communication in programming.
There are two challenges we will challenge this time.
The first one is to come up with a maze course together and create it.
And the second one is to reset the sample block code accordingly.
We will announce the course created by both teams together at the end.
First of all, let's look at the team of Otani.
So cute.
Nice.
In order to create a new course, it seems like you are filling in each sample block code.
No way!
Instead of a girl who is not good at detailed work, let's make it together!
Oh, nice!
By doing what you can do, you will complete the challenge.
You will learn teamwork's importance while learning code.
Peace!
What color do you want?
It seems like the director's team is discussing colors of backgrounds.
Please decide in 10 seconds.
10 seconds.
9...
Your favorite color.
Light blue.
8...
Using teammates' favorite colors for a work like this is also a great way of working together.
The work itself is programming for machines, but everyone is creating a maze while communicating with people naturally.
Let's make it really narrow.
Let's make it messy.
Me?
Yes.
The road?
Yes.
What kind of road do you like?
Let's go for a drive!
Not only do you want to make it difficult for your opponent by making the road difficult,
but you also want to make a game with people playing in mind.
This is the way of thinking of ICT!
It's a little complicated.
How is it? Is it a little complicated for you guys?
Yes, it is.
Is it?
OK, let's go!
It's a little difficult from the beginning.
Oh, but you made it!
Yes. It's difficult here, isn't it?
Yes!
Oh, my! Oh, my!
You can do it! You can do it!
Can I make it? Can I make it?
I can't make it!
Wait, I can't make it!
I'll go down once.
Go down once and...
Go down and...
Can I make it?
Go for it! Go for it!
Oh! Goal!
I made it!
Well then, it's time for the presentation!
I'm going to start the presentation now.
What is the name of this maze?
The name of the maze is "Rico".
Why is it called "Rico"?
When I noticed it, it became "Rico" on its own.
Well then, please move it now.
Start!
Well then, what is happening now?
What?
That's right!
Michael Jackson!
The road is narrow.
"Rico", "Rico", "Rico"
The road is narrow, so even if there is a road, it is difficult to proceed.
Oh!
Finally!
Just barely!
How was it, making it?
Making the road was fun
Making the goal's circle was...
Yes, it was difficult to put the beautiful circle in the road
Yes, then, the announcement is over
Thank you very much
Wonderful!
Next, Otani team
Yes, then, please announce it
Yes
Operation
Yes, operation
It seems like there is an obstacle
First of all, this is the first obstacle
You did it!
You all did it!
This is also an obstacle
It's a pattern of forcing yourself to clear it
That's right, a little playfulness
Oh, wait a minute!
Is it an error?
Isn't it an error?
It's not an error
That's how tricky it is
You did it!
I want to force myself to clear -5 obstacles
You can do it!
You did it!
A new goal!
Is it ice-cream?
Yes, it's ice-cream
I see, I see
Also, to break through this impossible goal,
you have to never give up
It's true that you can't give up
I see
Yes, you may think it's an error for a moment
Of course, depending on how you think, it's an error
But, if you look at the reason why it moved, you will understand
Here, if you touch the light blue one, it moves -5 steps forward
In other words, it means that -5 steps forward and 10 steps forward are winning
While moving -5 steps forward, you move 10 steps forward
In this order, you move forward somehow
You will use this kind of power
So, it's not an error, but there is also this way of doing it
I think it's a great change of trend
That's all for today!
After this, we will review the way of programming certification!
This program is provided by PROSTA of Programming Learning System.
Go! The Way of Programming Certification!
This is the fifth episode of "The Way of Programming Certification"!
Can you remember the questions you answered last time?
Yes, we do!
Aikawa-sensei and Aikawa-sensei are working remotely for the certification!
Hello!
Nice to meet you!
Let's do our best!
Up until now, you have been asking questions that seem like they will be tested.
What kind of questions are you going to ask this time?
Until last time, we asked questions about the basics of Scratch.
This time, we will ask you questions about actual programming.
Will it be difficult?
Yes, it will be a little difficult, but I think you two will know if you think about it carefully.
Of course!
Please do your best and try it!
We will do our best!
Here is the first question!
In this diagram, programming using apples and balls is included.
What will happen if we implement it?
Please choose the most appropriate one from the options.
1. The ball is called "apple".
2. The apple is called "apple".
3. The ball is called "red".
4. It doesn't say anything.
Do you understand?
I understand.
What does "denakereba" mean?
It's Japanese!
"denakereba"...
Did you two choose it?
We did!
I think it's definitely correct.
You seem to be confident!
Yes!
Please answer at once!
One, two...
Ta-dah!
It's number one!
It's number four!
It's number five!
What? Wait! It makes me uneasy!
Why doesn't it say anything?
But I don't think it's number one.
Why?
Because there is no word "ball" in this software.
That's right.
So it doesn't do anything, does it?
It's fixed, isn't it?
But it says "if you touch an apple," so it's strange for an apple to touch an apple.
So it's probably "ball" that touches an apple.
So "ball" is "apple."
Oh, no! I don't know what you're talking about.
Two people with different answers.
Let's actually try it on a computer!
I'm nervous. One, two...
I told you it's number two!
Isn't it "ball"?
The correct answer is number one!
Hitomi is correct!
Yay!
I'm happy!
Then, Ms. Aikawa, please give us an explanation.
There is something called "sprite," right?
This time, if you look at the right side of the screen, there are "ball" and "apple" sprites.
This is a very important point.
If you look at the screen of this software, you can see that there is a small picture of "ball" on the upper right.
Yes, it is.
This is a very important point.
This software is programmed for "ball."
I see.
So if you think of "ball" as the main character of this software, what would "apple" touch?
Ball.
That's right. This is about "ball."
I see!
That's why there was "ball" on the screen of this software.
That's right.
Look at this!
There was "apple" on the screen of this software, so why is "apple" on the screen of this software?
The thin "ball" mark on this arrow is an indicator that this software is programmed for "ball."
And if you look at the apple, you can see that the apple is not programmed for "ball."
In other words, this problem was about programming for "ball."
I see.
That's why the name "ball" doesn't appear in this software, but if you touch the "ball," it appears, right?
That's right.
Let's move on to the second question!
According to the movement of the mouse pointer, we will create a software that allows "sprite" to move.
At that time, we want to create a software that only moves horizontally, not vertically!
Please choose which software is correct!
1. Put "go to mouse pointer" in "z" block.
2. Move "z" block ten steps.
3. Move "z" block ten steps.
4. Move "z" block ten steps.
5. Move "z" block ten steps.
Now, do you know the answer?
The answer is "what do the "x" and "y" coordinates represent?"
You will know the answer after the commercial!
According to the movement of the mouse pointer, we will create a software that allows "sprite" to move.
At that time, we want to create a software that only moves horizontally, not vertically!
Please choose which software is correct!
The answer is "what do the "x" and "y" coordinates represent?"
Do you know the answer?
"x", "y", coordinates...
This is math!
Yes, it is!
Wait a second...
"x", "y", coordinates...
Wait, I'm going to multiply by math.
"x", move it...
Then, please show us your answers!
Ta-dah!
5!
Oh, it's the same!
3!
It's the same! It's been a while since we met!
Right?
Well...
I was talking with people about "x",
and I kept thinking that I can't say "programming" if I move sideways all the time,
and that it's wrong for me to move my mouse pointer.
And for number 2...
I've done this before.
But...
You might have.
I've done it, but...
But with only this one,
it's possible for me to move it vertically instead of sideways,
and I can't say anything...
Let's actually try it on your computer!
Here I go!
"a"!
"b"!
"c"!
"h"!
That means you're correct!
You're a genius!
Wait, aren't you amazing today?
Wait, you're still in second place. Are you okay?
Then, Ms. Aikawa, please explain.
Yes, you two were great.
This is really...
I'm happy!
The point is this x coordinate and y coordinate.
This is exactly like mathematics.
"x" is horizontal axis and "y" is vertical axis.
This is very important even for scratch.
By defining "x" coordinate and "y" coordinate like this,
you can create a sprite in a certain position in this screen.
You can do a lot of things like this.
I see.
Yes, and this is mathematics,
but if you've been doing scratch since elementary school,
you might not know about mathematics.
This "x", "y" is for math school, right?
As you can see in this diagram,
in the scratch stage, the sprite's position is represented by "x" coordinate and "y" coordinate.
To move the sprite to the left end,
"x" coordinate should be reduced to 240.
To move it to the right end, "x" coordinate should be reduced to 240.
And to move it up, "y" coordinate should be reduced to 180.
To move it down, "y" coordinate should be reduced to 180.
This is very important basic knowledge.
You must remember it!
Now, the third question!
If you click "x" ball with your mouse,
while rotating it, you want it to roll to the right of the ground.
Which program is correct for you? Choose one from the options!
If you move the chip, you can use the coordinates well.
No, it's quite different.
What?
Both of them are moving next to me.
Are you ready?
Then, show me your answers!
One, two, ta-da!
Oh!
It's the same!
It's number two!
You both chose number two, right?
Yes!
Then, let's try it with a computer!
Oh!
Try clicking it as many times as you like!
Can I?
Oh!
Then, the correct answer is number two!
You both did a great job!
Ms. Aikawa, where is the key point of this problem?
Well, first of all, it's important to read the problem carefully.
If you want the chip to roll to the right while rotating,
this right side is one of the key points of this problem.
Yes!
And you both remember how we did the x and y coordinates last time.
Yes!
And the key point is that number two has this x coordinate in it.
Yes!
Then, let's move on to the fourth question!
I want to program this arrow to chase a mouse pointer.
Which of the following programs is correct?
Everyone, do you know this question?
The answer will be revealed after the commercial!
I want to program this arrow to chase a mouse pointer.
Which of the following programs is correct?
It's too difficult!
If we move forward by ten steps, won't we overtake them?
But since we know all of them, it's not a big deal.
I got it!
It seems like Hana-chan got it!
Then, please show us your answers!
One, two...
Ta-dah!
Both of you, the answer is number two!
Let's try it out on your computers!
Both of you are correct! Well done!
Now, Ms. Aikawa, please give us your comments!
Both of you were really excellent and surprised me!
I'm happy!
I think you're great!
As for the second correct answer,
it's important to point the mouse toward you when you say "chase".
That's right.
So, when you say "point the mouse to me" and "move the jib"
you can do something like "chase"
Yes.
Next week is a music class using biscuits!
Please look forward to it!
This program was brought to you by PROSTA of the Programming Learning System.