0:00:00.100,0:00:00.980 Great! 0:00:00.980,0:00:02.440 We've caught a codfish! 0:00:02.440,0:00:07.510 Did you know if you feed a codfish to a dolphin,[br]the dolphin will guide you to a shipwreck 0:00:07.510,0:00:09.550 where there may be treasure? 0:00:09.550,0:00:11.610 We must be getting closer. 0:00:11.610,0:00:17.510 The next set of puzzles are bound to be trickier,[br]so we better learn some more coding skills. 0:00:17.510,0:00:18.510 What's this? 0:00:18.510,0:00:19.920 A cave? 0:00:19.920,0:00:21.390 Welcome, adventurers! 0:00:21.390,0:00:22.660 My name is Squid. 0:00:22.660,0:00:28.000 I noticed you were using the same set of commands[br]over and over in some of the last puzzles. 0:00:28.000,0:00:29.840 Must've been a bit tiresome. 0:00:29.840,0:00:33.890 Do you ever wish you had a way to do something[br]over and over again like, you know, 0:00:33.890,0:00:37.760 washing dishes or brushing your teeth [br]without getting tired or bored? 0:00:37.760,0:00:39.219 That would be nice. 0:00:39.219,0:00:45.049 Computers are really good at doing the same[br]thing over and over again using coding loops. 0:00:45.049,0:00:49.159 When you want your program to do the same[br]instructions many times, you can use a loop! 0:00:49.159,0:00:54.409 The loop contains instructions with the command[br]to repeat until goal. 0:00:54.409,0:00:59.329 Once your program starts a repeat until goal[br]loop, it will keep reading the instructions 0:00:59.329,0:01:01.659 inside until it gets to the goal. 0:01:01.660,0:01:03.280 Try this for yourself! 0:01:03.280,0:01:07.960 Place the commands you want to repeat inside[br]the repeat until goal block, 0:01:07.960,0:01:10.100 click run, and watch it go! 0:01:12.360,0:01:14.480 Well, that was a little weird. 0:01:14.480,0:01:16.150 Who knew squids could code? 0:01:16.150,0:01:18.570 I didn't even think they had fingers. 0:01:18.570,0:01:20.940 So now we know about loops. 0:01:20.940,0:01:23.320 Let's use them to bag us some more treasure. 0:01:23.320,0:01:24.000 Subtitles by the Amara.org community