[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:00.10,0:00:00.98,Default,,0000,0000,0000,,Great! Dialogue: 0,0:00:00.98,0:00:02.44,Default,,0000,0000,0000,,We've caught a codfish! Dialogue: 0,0:00:02.44,0:00:07.51,Default,,0000,0000,0000,,Did you know if you feed a codfish to a dolphin,\Nthe dolphin will guide you to a shipwreck Dialogue: 0,0:00:07.51,0:00:09.55,Default,,0000,0000,0000,,where there may be treasure? Dialogue: 0,0:00:09.55,0:00:11.61,Default,,0000,0000,0000,,We must be getting closer. Dialogue: 0,0:00:11.61,0:00:17.51,Default,,0000,0000,0000,,The next set of puzzles are bound to be trickier,\Nso we better learn some more coding skills. Dialogue: 0,0:00:17.51,0:00:18.51,Default,,0000,0000,0000,,What's this? Dialogue: 0,0:00:18.51,0:00:19.92,Default,,0000,0000,0000,,A cave? Dialogue: 0,0:00:19.92,0:00:21.39,Default,,0000,0000,0000,,Welcome, adventurers! Dialogue: 0,0:00:21.39,0:00:22.66,Default,,0000,0000,0000,,My name is Squid. Dialogue: 0,0:00:22.66,0:00:28.00,Default,,0000,0000,0000,,I noticed you were using the same set of commands\Nover and over in some of the last puzzles. Dialogue: 0,0:00:28.00,0:00:29.84,Default,,0000,0000,0000,,Must've been a bit tiresome. Dialogue: 0,0:00:29.84,0:00:33.89,Default,,0000,0000,0000,,Do you ever wish you had a way to do something\Nover and over again like, you know, Dialogue: 0,0:00:33.89,0:00:37.76,Default,,0000,0000,0000,,washing dishes or brushing your teeth \Nwithout getting tired or bored? Dialogue: 0,0:00:37.76,0:00:39.22,Default,,0000,0000,0000,,That would be nice. Dialogue: 0,0:00:39.22,0:00:45.05,Default,,0000,0000,0000,,Computers are really good at doing the same\Nthing over and over again using coding loops. Dialogue: 0,0:00:45.05,0:00:49.16,Default,,0000,0000,0000,,When you want your program to do the same\Ninstructions many times, you can use a loop! Dialogue: 0,0:00:49.16,0:00:54.41,Default,,0000,0000,0000,,The loop contains instructions with the command\Nto repeat until goal. Dialogue: 0,0:00:54.41,0:00:59.33,Default,,0000,0000,0000,,Once your program starts a repeat until goal\Nloop, it will keep reading the instructions Dialogue: 0,0:00:59.33,0:01:01.66,Default,,0000,0000,0000,,inside until it gets to the goal. Dialogue: 0,0:01:01.66,0:01:03.28,Default,,0000,0000,0000,,Try this for yourself! Dialogue: 0,0:01:03.28,0:01:07.96,Default,,0000,0000,0000,,Place the commands you want to repeat inside\Nthe repeat until goal block, Dialogue: 0,0:01:07.96,0:01:10.10,Default,,0000,0000,0000,,click run, and watch it go! Dialogue: 0,0:01:12.36,0:01:14.48,Default,,0000,0000,0000,,Well, that was a little weird. Dialogue: 0,0:01:14.48,0:01:16.15,Default,,0000,0000,0000,,Who knew squids could code? Dialogue: 0,0:01:16.15,0:01:18.57,Default,,0000,0000,0000,,I didn't even think they had fingers. Dialogue: 0,0:01:18.57,0:01:20.94,Default,,0000,0000,0000,,So now we know about loops. Dialogue: 0,0:01:20.94,0:01:23.32,Default,,0000,0000,0000,,Let's use them to bag us some more treasure. Dialogue: 0,0:01:23.32,0:01:24.00,Default,,0000,0000,0000,,Subtitles by the Amara.org community