Return to Video

Course 1 - Maze Loops

  • 0:00 - 0:05
    one thing that computers are really good
  • 0:02 - 0:07
    at is repeating commands as a person you
  • 0:05 - 0:09
    get really bored if you had to do the
  • 0:07 - 0:11
    same thing lots of times in a row but a
  • 0:09 - 0:14
    computer can do the same thing millions
  • 0:11 - 0:15
    or even billions of times and not get
  • 0:14 - 0:16
    bored and be able to carry that out
  • 0:15 - 0:17
    really well
  • 0:16 - 0:20
    so for example if I wanted to wish
  • 0:17 - 0:22
    everyone on facebook a happy birthday by
  • 0:20 - 0:24
    sending them an email it might take me
  • 0:22 - 0:26
    more than a century to actually write
  • 0:24 - 0:28
    out all of those emails to everyone but
  • 0:26 - 0:30
    with just a few lines of code i can have
  • 0:28 - 0:32
    a system send an email to everyone on
  • 0:30 - 0:34
    facebook wishing them a happy birthday
  • 0:32 - 0:36
    so that's what loops are and why they're
  • 0:34 - 0:39
    valuable and something that computers
  • 0:36 - 0:42
    can do very well in this example your
  • 0:39 - 0:44
    goal is going to be to move the bird now
  • 0:42 - 0:46
    we're going to be able to use the repeat
  • 0:44 - 0:49
    block in order to be able to do this
  • 0:46 - 0:51
    very easily you can either do this by
  • 0:49 - 0:54
    giving the computer and move forward
  • 0:51 - 0:57
    command five times in order to advance
  • 0:54 - 0:59
    the the bird one step each time to the
  • 0:57 - 1:01
    pig or you can just tell the computer to
  • 0:59 - 1:03
    move forward once and then tell it to
  • 1:01 - 1:06
    repeat that five times and it will do
  • 1:03 - 1:09
    the same thing so in order to do this
  • 1:06 - 1:11
    you drag your move forward command and
  • 1:09 - 1:14
    then you put it inside the repeat block
  • 1:11 - 1:16
    and you can click on it and tell it how
  • 1:14 - 1:18
    many times you want to repeat the block
  • 1:16 - 1:20
    to tell how many steps you wanted to
  • 1:18 - 1:22
    take forward now one more thing is you
  • 1:20 - 1:24
    can put as many commands as you want
  • 1:22 - 1:26
    inside the repeat block so in this
  • 1:24 - 1:29
    example your tongue it to move forward
  • 1:26 - 1:36
    and turn left which will do five times
  • 1:29 - 1:36
    alright good job and have fun
Title:
Course 1 - Maze Loops
Video Language:
English
Duration:
01:35

English subtitles

Revisions