In Level 1 you can use the commands print
, ask
and echo
.
Type your code in the programming field. Or press the green button in the example code block, and the code will be typed for you!
Try the code yourself with the green 'Run code' button under the programming field.
You can print text to the screen using the print
command.
print Hello!
print Welcome to Hedy!
You can also ask for input with ask
and repeat it back with an echo
command.
ask What is your name?
echo hello
Let's get started! Don't know what to create? In the next tabs you will find ideas for programs to build.
In level 1 you can make a story with a different main character that you enter yourself.
In the first line, use ask
and ask who the main character of the story will be.
After that first line, start with print
if the sentence needs to be printed.
You use echo
if you want your main character to be at the end of the sentence.
ask The main character of this story is
print The main character is now going to walk in the forest
echo He's a bit scared,
print He hears crazy noises everywhere
print He's afraid this is a haunted forest
Create your own online pet parrot that will copy you!
print Im Hedy the parrot
ask whats your name?
echo
echo
You can also use Hedy to draw. By combining turns and lines, you can make a square or stairs!
Using forward
you draw a line forwards. The number behind it determines how far the turtle will walk. turn right
turns a quarter turn in clockwise direction, turn left
turns counter clockwise.
If you want to go backwards, you use the forward
command but with a negative number. So for example forward -100
This is the start of a little staircase. Can you make it have 5 steps?
forward 50
turn right
forward 50
turn left
forward 50
You can also change the color of the lines with the command color
. Check out the example.
You can also use the command color white
to make 'invisible' lines. You could use these white lines to move the turtle anywhere in the screen before you start drawing.
color white
forward -80
color green
forward 50
color yellow
forward 50
color red
forward 50
In level 1 you can start with a rock, paper, scissors game.
With ask
you can make a choice, and with echo
you can repeat that choice.
print what do you choose?
ask choose from rock, paper or scissors
echo so your choice was:
Instead of using words, you could also use emojis of course: ✊✋✌
Have you ever been to a carnival and had your future predicted by a fortune teller? Or have you ever played with a magic eight ball? Then you probably know that they can't really predict your future, but it's still fun to play!
In the upcoming levels you can learn how to create your own fortune telling machine! In level 1 you can start off easy by letting Hedy introduce herself as a fortune teller and let her echo the players' answers. Like this:
print Hello, I'm Hedy the fortune teller!
ask Who are you?
print Let me take a look in my crystal ball
print I see... I see...
echo Your name is
Hedy now only tells you your name. Can you expand the code so that Hedy can predict more things about you? Obviously, Hedy isn't a very good fortune teller yet, as she can only repeat the answers that were given by the players! Take a look in level 2 to improve your fortune teller.
In level 1 you can make your own virtual restaurant and take your guests' orders.
print Welcome to Hedy's restaurant 🍟
ask What would you like to order?
echo So you would like to order
print Thanks you for your order!
print It's on its way!
Can you think of more lines to add to your restaurant code? For example, can you ask the guests what they'd like to drink, tell them the price, or wish them a pleasant meal?
In this adventure you are working towards making a game in which you have to escape from a haunted house by picking the correct door. If you pick the right door you'll survive, but if not a terrible monster might...
In level 1 we start our haunted house game by making up a scary story and ask the player what monster they'll see in the haunted house.
print How did I get here?
print I remember my friend telling me to go into the old mansion...
print and suddenly everything went black.
print But how did I end up on the floor...?
print My head hurts like Ive been hit by a baseball bat!
print What's that sound?
print Oh no! I feel like Im not alone in this house!
print I need to get out of here!
print There are 3 doors in front of me..
ask Which door should i pick?
echo I choose door
print ...?
Can you finish the scary story? Or make up your own haunted house story?
Congratulations! You've reached the end of level 1. Hopefully you've already made some awesome codes, but Hedy has a lot more to discover.
In the first level you might've notice that the echo
command can only save one bit of information at a time.
For example in the restaurant adventure, you could echo what the costumer wanted to eat, or what they wanted to drink, but not both in one sentence.
print Welcome at Hedy's
ask What would you like to eat?
echo So you want
ask what would you like to drink?
echo So you want
If the player types a hamburger and coke, you can't say "so you would like a hamburger and coke", but you have to make two separate line.
Also, the echo
command only echoes the word at the end of the sentence. So you can't say "your hamburger is coming right up!".
That changes in level 2. In level 2 you'll learn to work with variables, that allow you to save multiple pieces of information and print them in any place you want.
Besides, you'll learn how to work with the at random
command, that you can use to make games.
So let's go to the next level!
Good!
The correct answer is