[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:03.70,0:00:05.60,Default,,0000,0000,0000,,I was in 8th grade when I learned to program. Dialogue: 0,0:00:05.70,0:00:07.00,Default,,0000,0000,0000,,I first learned how to make a Dialogue: 0,0:00:07.00,0:00:10.50,Default,,0000,0000,0000,,green circle and a red square appear on the screen. Dialogue: 0,0:00:10.70,0:00:13.40,Default,,0000,0000,0000,,You just learn these lessons, and there aren't that many of them, Dialogue: 0,0:00:13.40,0:00:16.40,Default,,0000,0000,0000,,and you just eventually can get to the point\Nwhere you can do almost anything that you want. Dialogue: 0,0:00:17.70,0:00:22.33,Default,,0000,0000,0000,,Computer science is just learning \Nhow a computer works and how it thinks, Dialogue: 0,0:00:22.33,0:00:24.70,Default,,0000,0000,0000,,so that you can teach it to do new things. Dialogue: 0,0:00:24.80,0:00:28.10,Default,,0000,0000,0000,,These days what you can do in computer science \Nis pretty much amazing. Dialogue: 0,0:00:28.20,0:00:31.20,Default,,0000,0000,0000,,I think it's the closest thing we have to a super power. Dialogue: 0,0:00:31.30,0:00:34.20,Default,,0000,0000,0000,,(Tanya: Computer Science student) In the next hour we're going to play a game Dialogue: 0,0:00:34.20,0:00:36.00,Default,,0000,0000,0000,,that will teach you the basic concepts of programming. Dialogue: 0,0:00:36.00,0:00:39.50,Default,,0000,0000,0000,,Usually programming is all in text but we'll use Blockly, Dialogue: 0,0:00:39.60,0:00:43.20,Default,,0000,0000,0000,,which uses visual blocks that you drag and drop to write programs. Dialogue: 0,0:00:43.20,0:00:46.00,Default,,0000,0000,0000,,Under the hood you're still creating code. Dialogue: 0,0:00:46.00,0:00:49.40,Default,,0000,0000,0000,,To start off we're going to build code for a program that will help Dialogue: 0,0:00:49.40,0:00:54.00,Default,,0000,0000,0000,,this angry bird move through a maze to get to \Nthe evil pig that stole its eggs. Dialogue: 0,0:00:54.00,0:00:56.60,Default,,0000,0000,0000,,Blockly is split into three main parts. Dialogue: 0,0:00:56.60,0:01:00.00,Default,,0000,0000,0000,,On the left is the bird's maze where your program will run. Dialogue: 0,0:01:00.00,0:01:04.00,Default,,0000,0000,0000,,The instructions for each level are written below the maze. Dialogue: 0,0:01:04.00,0:01:06.00,Default,,0000,0000,0000,,This middle area is the tool box, Dialogue: 0,0:01:06.00,0:01:10.20,Default,,0000,0000,0000,,and each of these blocks is a\Ncommand that the bird can understand. Dialogue: 0,0:01:10.20,0:01:13.00,Default,,0000,0000,0000,,The white space on the right is called the workspace Dialogue: 0,0:01:13.00,0:01:15.10,Default,,0000,0000,0000,,and this is where we'll build our program. Dialogue: 0,0:01:15.10,0:01:21.00,Default,,0000,0000,0000,,If I drag the "move" block to our workspace and press "run", \Nwhat happens? Dialogue: 0,0:01:21.00,0:01:23.50,Default,,0000,0000,0000,,The bird moves forward one box on the grid. Dialogue: 0,0:01:23.50,0:01:28.00,Default,,0000,0000,0000,,And what if I want the bird to do something\Nafter the move forward on one box? Dialogue: 0,0:01:28.00,0:01:30.30,Default,,0000,0000,0000,,I can add another block to our program. Dialogue: 0,0:01:30.30,0:01:33.90,Default,,0000,0000,0000,,I'm going to choose the "turn right" block and I'll drag it underneath Dialogue: 0,0:01:33.90,0:01:37.00,Default,,0000,0000,0000,,my "move" block until the yellow arrow appears Dialogue: 0,0:01:37.00,0:01:41.00,Default,,0000,0000,0000,,and then I'll drop it and the two blocks will snap together. Dialogue: 0,0:01:41.00,0:01:45.00,Default,,0000,0000,0000,,When I press "run" again,\Nthe bird will perform the commands that are stacked, Dialogue: 0,0:01:45.00,0:01:47.00,Default,,0000,0000,0000,,from top to bottom, on our workspace. Dialogue: 0,0:01:47.00,0:01:49.00,Default,,0000,0000,0000,,If you ever want to delete a block, Dialogue: 0,0:01:49.00,0:01:52.00,Default,,0000,0000,0000,,just remove it from the stack and drag it to the trash can. Dialogue: 0,0:01:52.00,0:01:57.80,Default,,0000,0000,0000,,After you've hit "run", you can always hit the\N"reset" button to get the bird back to the start. Dialogue: 0,0:01:57.80,0:01:59.50,Default,,0000,0000,0000,,Now, let's get those pigs!