0:00:03.700,0:00:05.600 I was in 8th grade when I learned to program. 0:00:05.700,0:00:07.000 I first learned how to make a 0:00:07.000,0:00:10.500 green circle and a red square appear on the screen. 0:00:10.700,0:00:13.400 You just learn these lessons, and there aren't that many of them, 0:00:13.400,0:00:16.400 and you just eventually can get to the point[br]where you can do almost anything that you want. 0:00:17.700,0:00:22.330 Computer science is just learning [br]how a computer works and how it thinks, 0:00:22.330,0:00:24.700 so that you can teach it to do new things. 0:00:24.800,0:00:28.100 These days what you can do in computer science [br]is pretty much amazing. 0:00:28.200,0:00:31.200 I think it's the closest thing we have to a super power. 0:00:31.300,0:00:34.200 (Tanya: Computer Science student) In the next hour we're going to play a game 0:00:34.200,0:00:36.000 that will teach you the basic concepts of programming. 0:00:36.000,0:00:39.500 Usually programming is all in text but we'll use Blockly, 0:00:39.600,0:00:43.200 which uses visual blocks that you drag and drop to write programs. 0:00:43.200,0:00:46.000 Under the hood you're still creating code. 0:00:46.000,0:00:49.400 To start off we're going to build code for a program that will help 0:00:49.400,0:00:54.000 this angry bird move through a maze to get to [br]the evil pig that stole its eggs. 0:00:54.000,0:00:56.600 Blockly is split into three main parts. 0:00:56.600,0:01:00.000 On the left is the bird's maze where your program will run. 0:01:00.000,0:01:04.000 The instructions for each level are written below the maze. 0:01:04.000,0:01:06.000 This middle area is the tool box, 0:01:06.000,0:01:10.200 and each of these blocks is a[br]command that the bird can understand. 0:01:10.200,0:01:13.000 The white space on the right is called the workspace 0:01:13.000,0:01:15.100 and this is where we'll build our program. 0:01:15.100,0:01:21.000 If I drag the "move" block to our workspace and press "run", [br]what happens? 0:01:21.000,0:01:23.500 The bird moves forward one box on the grid. 0:01:23.500,0:01:28.000 And what if I want the bird to do something[br]after the move forward on one box? 0:01:28.000,0:01:30.300 I can add another block to our program. 0:01:30.300,0:01:33.900 I'm going to choose the "turn right" block and I'll drag it underneath 0:01:33.900,0:01:37.000 my "move" block until the yellow arrow appears 0:01:37.000,0:01:41.000 and then I'll drop it and the two blocks will snap together. 0:01:41.000,0:01:45.000 When I press "run" again,[br]the bird will perform the commands that are stacked, 0:01:45.000,0:01:47.000 from top to bottom, on our workspace. 0:01:47.000,0:01:49.000 If you ever want to delete a block, 0:01:49.000,0:01:52.000 just remove it from the stack and drag it to the trash can. 0:01:52.000,0:01:57.800 After you've hit "run", you can always hit the[br]"reset" button to get the bird back to the start. 0:01:57.800,0:01:59.500 Now, let's get those pigs!