• LOGIN
  • No products in the cart.

Thanksgiving Lesson [Instructor] PRO

Review the concept of algorithm and write the first program

Thanksgiving Lesson

Special lesson for Thanksgiving

Create an algorithm for a Thanksgiving Turkey

Activity

You will be figuring out how to draw a Turkey today

You will use code you have already learned

What do each of these blocks do?:

Getting To Website

Go to http://www.pencilcode.net

Click on the blue button that says Let’s Play

Removing The Code That’s Already There

Drag the code that’s already there to the left. That will get rid of it.

You should have no blocks of code so that you can get started

Speeding The Turtle Up

We need our turtle to be faster! Let’s use speed

Drawing The Head And Body

To draw the body, you will need a large dot

To draw the head, you will need a smaller dot, but we need to first move forward

Here is the code so far (You can change the size of the dots and fd):

Drawing Eyes

To draw eyes, you will simply need two dots. The dots should be smaller than the face.

You need to turn the turtle and move it to where the eyes go. Use rt and then fd.

Here is the code for getting moving the turtle to the right so you can place an eye:

Then use a dot to make the eye. You can use more than one dot to make the eye have more than one color.

Here is the code for the eye:

How do you think you can get to spot where the second eye would go?

Use bk so that you do not even have to turn.

Is bk 100 enough to get you where the other eye would go?

Use bk 100

Use the same code for the dots to make the second eye.

If you want to use different code, you can. THIS WILL MAKE YOUR TURKEY LOOK CRAZY!

Here is the code for the second eye including the bk block:

Here is all the code for your turkey so far:

speed 30

dot brown, 400

fd 200

dot brown, 200

rt 90

fd 50

dot black, 50

dot yellow, 25

bk 100

dot black, 50

dot yellow, 25

Drawing the Legs

For the legs, you will need to draw a line near the bottom of the body. You need to move the turtle to the right spot first using fd,bk,lt, and rt.

There are many ways to move to where the legs go. Here is one:

*If this doesn’t work for you, you can change the number for the fd.

Once you are in the right spot to draw a leg, you can draw it by getting a pen and moving the turtle down. You will want to pick the pen up before moving the turtle to the spot where the other leg would go.

Here is the code for the first leg:

To draw the second leg, you will need to move the turtle to the right spot.

There are many ways to do this, here is one:

Now you can move forward one last time using fd and you just draw the legs!

speed 30

dot brown, 400

fd 200

dot brown, 200

rt 90

fd 50

dot black, 50

dot yellow, 25

bk 100

dot black, 50

dot yellow, 25

rt 90

fd 400

pen yellow, 10

fd 100

bk 100

lt 90

fd 100

rt 90

fd 100

Challenge of the day

Add more things to the Turkey such as a beak, a gobble, or a tail.

Code for Beak:

bk 100

rt 90

fd 50

pu pen

rt 90

fd 350

rt 110

pen yellow

fd 50

rt 140

fd 50

rt 110

fd 30

fill yellow

Code for the dobble:

pu pen

bk 50

dot red, 30

bk 20

dot red, 30

hide()

Wrap Up

You have created an algorithm for a Turkey! If someone else wanted to make a Turkey, they could use your algorithm!

Have a great Thanksgiving!

Last Updated:7/24/2019


Attachments2

SEE ALL Add a note
YOU
Add your Comment
Copyright © 2016-2018 Code Rev Kids, Inc. All Rights Reserved. Code Rev Kids, Inc. and kidslovecode.com are not official Minecraft® products. They are not approved by, or associated with Mojang®. NOT AN OFFICIAL MINECRAFT PRODUCT.  NOT APPROVED BY OR ASSOCIATED WITH MOJANG.
ok

great

×
Top
error: Content is protected !!