AISubs v3.5
In 2020, programming education will be introduced in elementary school classes.
Nowadays, we also need computers in our lives.
For children who want to have a future, it is 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!
Therefore, in the program, we will challenge programming first for next year's finalization!
We will use games and music to learn programming with fun!
What is it?
It's a song!
A programming star sings a song of love.
So, everyone in front of the TV should prepare a tablet or a computer and go on a programming journey with us!
Let's go for it! Programming star!
In "Let's go! Programming star!",
the youngest member of "Let's go! Programming star!", Shinji Nira, who is also active as a solo artist.
In 2017, Rino Sashihara produced and debuted as an idol group of 12 members, "equal love".
The sister group of "equal love", "not equal me", which was born in February of this year.
With these members, they have been studying programming since April.
We are taught by more than 100 teachers all over the country.
Mr. Ando Noboru, who is now the principal of the popular programming learning series "Prosta", which will begin programming intensification next year.
We have been making records, programming events that occur when you stop at a bus, or making diagrams using conditionality.
This time, let's review the conditionality we learned in June.
Conditionality is one of the three types of personnel in programming, including order processing and repetition.
The first thing I learned in April on the show was order processing.
Processing programming from top to bottom in order.
The point was to line up the blocks in the order you wanted to move.
And what I learned in May is repetition.
Repeating programming over and over again.
Even if you don't line up the same blocks, you can process them efficiently.
And this month, we used conditionality to make records.
On June 1st, we learned how to make a dice using variables.
Let's review it again.
Mr. Prosta, please!
A variable is something like a bucket that contains different numbers in a program.
An easy example of a variable is an eye of a dice.
If you roll a dice, the numbers one through six change for each eye of the dice, right?
To roll a dice, select "roll a dice" from the variable palette.
Name the new variable and click OK.
If you can do that, press and hold the space key from the event palette and
select "make the dice's eyes zero" from the variable palette and connect them!
Since the dice's eyes are random, select the numbers from the variable palette from one to ten and
change the number of ten to six!
If you press the space key, the dice's eye values will be displayed randomly!
If you can do that, let's prepare an illustration from one to six!
The point is to draw in order from the top!
Then, select "roll up the costume" from the appearance palette!
Next, connect the numbers from the variable palette with the dice's eyes!
If you do that, the dice's eyes and illustration will change together!
Now that we have a recap, let's take a look at Emily's dice!
Now let's have a look at Emily's dice!
Here we go!
"Wang" "nyan" "kirin" "wangwangkirin" "kirin" "wangpyon" "kirin"
"kirin" "kirin" "kirin" has a high "kirin" rate, doesn't it?
That's right, I wrote "kirin" in contradiction.
Sensei, is it OK?
You are good at it.
Thank you very much.
You're perfect.
After that, they created events using messages.
"=LOVE" programming is being streamed uncut on Hulu.
Don't miss their nice errors!
This program is provided by PROST of Programming Learning System.
Next, they learned how to create events in June.
They created events using "message sending" block.
Let's review again.
PROST, please!
When you want to send an order from one character to another,
select "message sending" from the event palette.
Let's connect under the programmed block!
Next, select a character to receive orders and select when you receive a message from the event palette!
Connect the block you want to order under it!
Let's review the events broadcasted on June 8th.
First of all, Nonno-chan.
I'm lost.
Hey you, let's dance together.
No, I don't want to.
I'll pay you.
OK, never mind.
Wow!
Interesting!
It was a good conversation.
Is it possible to solve it with money?
As an idol, is it OK?
Everyone likes money.
So, I programmed it well.
It's a good timing, isn't it?
How to get money and...
OK, thank you.
The last one is Shinji-kun.
Hello.
Where are you going?
I had a fight with my mom yesterday and I'm going to eat grilled meat.
So, I'm going to a butcher shop.
Don't hate people even if you have a fight.
Even if you have a fight!
Wow!
It's good, isn't it?
Yes.
And it's cool.
Yes.
Like "Don't hate me."
Yes.
Wow!
Yes.
Iori-chan, what do you think of it?
Well, I often say "fight" but...
I'd like you to refer to it.
Oh, is that so?
Yes, it's different.
It's not released yet.
Make a game using conditional division.
On Voodoo...
They are broadcasting "equal love" programming without cut.
Don't miss their "nice error"!
Don't miss "equal love" programming without cut.
From now on, it's not released yet. We made a game using the condition division machine.
I'd like to make a dog game right away. Since we're making a game of running away from a dog, I'd like you to choose a stage.
Choose a stage suitable for you to play a mini- game from this stage.
First of all, you run away from Shinji. How you run away is...
If you raise your mouse, Shinji will move.
This is also a condition division machine.
First of all, choose "big" Shinji.
Since you're going somewhere, set this to "mouse pointer".
Then, bring it here.
This is a condition division machine.
When you move it is...
This time, it's an order to repeat until you meet these conditions.
Next, in order to set the game time to 10 seconds, we'll use a timer from the "check" palette.
"Timer". Please check the "timer".
If you check the "timer", the "timer" is moving here.
Since this is 10 seconds, if you reset the "timer" and bring it here, it will return to "zero" when you click it.
After 10 seconds, we'll tell you to stop.
Since it's 10 seconds, we'll use this "green" palette.
Bring the top one and set the "timer" here.
We'll set this to 10 seconds.
If it exceeds 10 seconds, it will stop.
Let me review the programming so far.
First, select "go somewhere" from the "move" palette and select "mouse pointer".
Select "repeat" from the "control" palette and check the "timer" from the "check" palette.
Then, connect the "timer reset" block to the top one.
Select "○○ is larger than 50" from the "programming" palette and insert the "timer" block into "○○".
If you change "50" to "10" and reset the "timer", Shinji will move according to the movement of the mouse for 10 seconds.
What kind of program will you set up next?
The dog will chase you, so you can copy this program directly to the dog.
Click "ctrl + c" and click "copy".
If you click "dog" now, you can't copy anything.
If you press "ctrl + v" here, you can copy it as it is.
To copy a program, select the program you want to copy and press "c" while pressing "ctrl".
Then, select the character you want to copy and press "v" while pressing "ctrl".
As for the dog, we will make it move like the following.
First of all, turn it towards the mouse pointer.
If you do it like this, the dog will turn towards the mouse pointer.
Well, the buttocks will turn towards it.
If you do it like this, when it turns towards you, move it by 20 steps.
Now, what will happen is...
I will tell you.
Yes, it will follow you.
For the programming that the dog will follow you, select "move from palette to mouse pointer" and replace it with "move to mouse pointer" block.
Then, connect "move by 10" block and change "10" to "20".
Now, we have a game where Shinji moves his mouse and a dog chases him.
So, we'd like to try moving these at the same time.
Here, we have an event we did before.
Message
And here, we have an event "Message" mini-game.
Now, we'll connect "Shinji" and "dog" with a mini- game.
And now, we have a game.
If you click "mini-game", you can see what it looks like.
Like this.
From the event "palette", select "message" and name the mini-game.
Next, on the program of "dog" and "big" Shinji- kun, connect the time when you received the mini- game!
And, if you click "send mini-game", the game will start!
"Big" Shinji, you send it, right?
If it's like this, I'll send it...
Well, it doesn't matter which one you send, you can send it from anywhere.
"Big" Shinji, please send it.
This is not good, so...
"Big" Shinji, please send it.
Oh, this is fine.
Do you want me to attach it to both of them?
Yes, thank you very much!
If you attach it to both of them, it will be like this.
If you've done it up to this point, the next study is to add scores to the game!
Well, first of all, this variable...
From the variable...
Yes, this dark orange one.
It's on top of this block definition.
From here, create a variable.
And here, let's make it "score".
"score".
Yes.
If you do that, now, under the timer, a new "score" will appear.
Yes.
Well, since we had "100 points" at the beginning, let's see how much it will decrease.
Yes.
Well, since we had "100 points" at the beginning, let's see how much it will decrease.
Now, here...
Yes.
Here, let's make "score" "100".
Yes.
If you do that, in the mini-game, "score" will become "100".
Yes.
Oh!
If a dog touches you like this, let's say it's "minus one point".
Yes.
Well, now, if Shinji-kun is touched by a dog...
If you are touched by a dog, "score" will decrease one by one.
Let's make it like that.
Yes.
Next, like this, this condition division.
"If not"...
Yes.
Yes, I'll put it in here. "If not", I'll put it in here. It's between the timers, isn't it?
Yes. Yes.
If you do that, "check" and "check".
And if this "dog" touches Shinji-kun, who is now choosing "dog" ...
Big Shinji-kun?
Big Shinji-kun, yes.
The variable I mentioned earlier ...
Oh, I made a mistake.
This is it. This "score" was 100 points, but let's reduce it by one point. Minus one.
Minus one.
Yes, I'll reduce it by one point.
Yes, and now the game is complete.
Yes.
To add a "score", choose "create variable" from the "variable palette" and add a "score" and a "name".
First of all, in order to set the holding point to 100, let's set the "score" from the "variable palette" to 100!
Connect this block to the dog's program!
Next, in order to lower the score every time Shinji-kun touches the dog,
connect "if ____ if" from the "control palette" and choose "when ____ touched ____" from the "check palette"!
Then, select "big shinji"
Next, select "change -1 score from variable palette" and "if ____ touched ____" and you're done!
After this, they infiltrate Maruhi facility which protects the safety of the sea!
On Hulu, they're broadcasting the programming of "equal love" in no cut!
Don't miss their nice error!
Programming saves the world!
Most of smartphones and games you use as usual are actually programmed.
Now, not only are those technologies useful, but they also protect people's safety.
I'd like to go to "tokyo one" sea traffic center which protects the safety of ships in tokyo one!
I heard there's a lot of programming that protects the safety of ships there,
but there's no road like a road in the sea, right?
That's right!
It's strange why ships don't collide with each other.
What's going on?
To investigate the secrets of such ships, we're going to the facility!
Let's go!
They've come to investigate "tokyo one" sea traffic center!
Here, they monitor the safety of the sea with a 24-hour system.
Nice to meet you!
Hello!
I'm Sugiyama of "tokyo one" sea traffic center.
Nice to meet you!
Sugiyama-san, the security chief of the facility, will guide us!
How many ships come and go in a day at Tokyo Bay?
About 500 ships a day.
- 500 ships?! - Yes.
- Wow, that's a lot! - The types of ships include...
- big tankers that can carry up to 30,000 tons of oil... - Wow, that's a lot!
- cargo ships, container ships... - That's a lot!
- And also fishing ships and high-speed ships... - Wow, that's a lot!
Including those small ships, we have about 500 ships in all.
- Wow! - Yes.
At Tokyo Bay, about 500 ships come and go in a day.
What is the purpose of ships?
Well, even in the sea, there is a highway that turns into a road.
Highway signs that indicate that road.
Nowadays, many ships run with those signs as their landmarks.
In the past, there were lighthouses like this one in Misaki.
- A lighthouse that lights up, right? - Yes, lighthouses like that.
Ships run with those signs as their landmarks.
There is also a road called "highway" in the sea, and ships go and return along it.
But why can 500 ships operate without colliding?
We asked them to tell us their secret.
- Excuse me. - Yes, go ahead.
- Wow, there are so many ships. - This is the operation room.
- Wow, there are so many things about Tokyo One. - Yes.
- Wow. - I think you can see almost everything from here.
- This is the operation room of Tokyo One Maritime Transportation Center. - Wow.
- This is the operation room that protects the safety of Tokyo One.
- With a monitor over 30 units, they monitor the safety of the sea 24 hours a day.
- This is the operating table that you are looking at.
- This is one of the types of screens. - Yes.
- What is used in this facility is programming technology called AIS.
- In real-time, you can know the type of ship, position of the ship, and speed of the ship.
- This triangle represents the size of the ship.
Do you check the ship on the monitor and be careful that the ships may collide with each other?
That's right.
If you look at it like this, the arrow may look like it's about to collide with each other.
In that case, you can communicate with the ship by radio, which each ship has its own sense of operation completion.
We make warnings like "it's close", "it's dangerous" and prevent collisions.
That's amazing.
She actually showed me how to convey information to the ship.
It seems that another ship is advancing in the direction of this ship called "A-20", so there is a fear of collision at this rate.
There, she will convey this information to the ship of "A-20" and change course.
We are heading north towards Uragasuido.
Is this Tokyo Marts Shipyard?
This is Tokyo Marts Shipyard.
Yes, hello.
We are heading north on the left front of the information line.
This ship will be heading east towards Tokyo.
Roger that.
Please be careful on the roof.
If you record it...
Thank you very much.
That's amazing.
That's so cool.
That's amazing.
In this way, they protect the safety of the sea.
What did they do before this system was created?
Before this system, we couldn't get this kind of information.
So, in the past, we used to call a boat and check it one by one to see where it was going and if there was a dangerous boat, we provided information.
But now, thanks to AIS, we can get a lot of information and provide great information to the boat.
- Is this also programmed? - Yes, it is.
Thanks to programming technology, the safety of the sea was protected.
We could see that the boats of "Tokyo Bay" are safely protected by the efforts of the people of Kansai.
As a department of the Seabed Security Agency, we will continue to work hard while maintaining sea traffic and improving sea life socially.
Thank you for your cooperation.
Next time, we will investigate the latest programming technology that allows you to know anything about the sea.
On Hulu, you can watch the original contents of the popular game "Minecraft", which has more than 100 million people registered in the world, and learn its educational programming function!
This program was brought to you by Prosta, a programming learning system.