Sie sind auf Seite 1von 26

Introduction

At the end of the mysterious labyrinth inside the library, Max and Ana find
out a dusty old box which keeps inside it the secret that will allow them to
escape. In order to open it, they have to decipher all the geometrical
riddles which appear in the top of the box.

Count pixels, measure distances and calculate angles so Max and Ana can
escape from the labyrinth. Meanwhile, you will learn the basis of geometry.
Let's draw!

Skills
The student will develope the following skills)
 Mathematical skills JHRPetry
 Spatial orientation
 Logical reasoning

Goals
This lesson sets out the following goals)
 Understand the sequence that controls a drawing
program
 Develop spatial vision and orientation
 Find out code patterns capable of being included in iteration
structures a certain number of times

 Learn how to calculate regular polygon angles by knowing how


many sides they have

Content
Max and Ana have found out a mysterious box and they have to draw in
its top in order to open it.
The cursor will start drawing following the arrow direction:

If you want to change arrow's direction, you can use the turn block by
choosing left or right. You have also to choose how many degrees you
want to turn.

You can move forward or backward a certain number of pixels

BLOCKS

Step 1
Draw a 200 pixels lenght line
Solution

Flow Chart

Step 2
Draw a 200 pixels lenght line and a 100 pixels lenght line
Now Pixie allows you to use all the blocks you want, so you can turn 90
degrees by using a turn 60 degrees block and a turn 30 degrees one.
Solution

Flow chart

Step 3
Draw a square whose side is 200 pixels lenght

Solution

Flow chart

Step 4
Draw a triangle whose side is 200 pixels lenght
Solution

Flow chart

Step 5

Draw a square whose side is 200 pixels lenght


by using a loop
Now you have a limited number of available blocks, so you must use a loop
block. We have to find out the code section capable of being repeated:
move forward by 200 pixels and turn left 90 degrees.
In the alternative solution, we do the opposite: move backward and turn
right.
Solution

Alternative solution

Flow chart

Step 6
Draw a triangle whose side is 200 pixels lenght
by using a loop
Solution

Alternative solution

Flow chart

Step 7
Draw a pentagon whose side is 200 pixels lenght
Before drawing regular polygons, we should know that despite the
number of sides, the addition of the measure of all its internal angles
is always 360 degrees.
Using this, we can easily know how many degrees is each angle by
dividing the total amount (360) by the number of sides. In this case, we
have to draw a pentagon, so if we divide 360 by 5, we get 72 degrees.
 tion

Alternative solution

Flow Chart

Step
8
3DVR
Draw a square whose side is 100 pixels lenght
'LEXMDXQFXDGUDGR\XQWULQJXORHTXLODWHUR
and a triangleGHSL[HOHV
whose side is 100 pixels lenght
This time, we have to draw two figures. They arent connected, so you
must use the pen up and pen down blocks.
Solution

3DVR
Step
9
'LEXMDGRVFXDGUDGRV
Draw two squares

This time we have many solutions, so we should try to find the


shortest in order to optimize the number of used blocks. Well star
with an 8 blocks solution:
 tion

Lets try to find out a pattern which allows us to complete the


exercise by repeating it twice. We are going to repeat the
stair instead of the square.

Alternative solutionThis one has also 8 blocks



Lets look for another pattern. This time, well try with the
reflected L and were going to use 3 loop blocks:

Alternative solutionThis one has also 8 blocks

Can we find a shorter solution? Yes, we can! We have to repeat


the square pattern. Theres a little trick here: if you repeat the
pattern 6 times instead of 4, the arrow will finished where we
want to. Then, you have to turn right 180 degrees and repeat
the square pattern again.

Alternative solutionWe've solved the exercise with only 6 blocks!



Step
10
3DVR
Draw four squares
'LEXMDFXDWURFXDGUDGRV

In this case, we must use loops too. We have to draw a square, change
the arrow position and repeat all 4 times. Be careful about not
drawing unnecessary lines. Use pen up and pen down.
6ROXtion



Alternative solutionWere doing the same but drawing the squares


clockwise. Both solutions need 11 blocks,

Step 11
Draw an hexagon made of 6 triangles 

Lets use a loop to draw a triangle. Then, we only have to turn the arrow
and repeat all six times

6ROXtionI use 7 blocks

Can we find a shorter solution? Yes! If we manage to get the arrow


orientation correctly, we only have to repeat the code four times.
6ROXtioQI've only used 6 blocks



Das könnte Ihnen auch gefallen