Escreve alguma coisa usando
Pergunta algo com
Repete alguma coisa usando
Bem-vindo(a) à Hedy! No nível 1 podes usar os comandos
Na barra à esquerda podes ver todos os comandos usados no nível 1.
Pressiona o botão azul e o código será digitado para ti!
Experimenta o código à vontade, usando o botão verde 'Executa o código', por baixo do painel de programação esquerdo.
Ainda não sabes o que criar? Nos próximos separadores vais encontrar algumas ideias sobre o que fazer.
No nível 1 podes criar uma história com um personagem principal diferente, saído da tua imaginação.
Como primeira linha, usa este código:
ask quem e o protagonista da tua historia
Após a primeira linha, começa com
echo se quiseres colocar o teu personagem principal no final da frase.
ask O(A) personagem principal desta história é ... print O(A) personagem principal vai caminhar agora na floresta echo Está um pouco(a) assustado(a) ... print Ouve barulhos estranhos por toda a parte print Receia que esta floresta seja assombrada
É uma pena só conseguires criar frases em que o nome do personagem principal aparece no final, certo? Depois de praticarmos com esta história, prossegue para o nível 2 e, a seguir, para o nível 3, onde podes criar programas cada vez mais complexos.
In level 1 we make a start with our own die.
ask Would you like to make a die? echo You said:
This code only repeats the player's answer. In the following levels, the computer will really make a choice.
In level 1 you can start with a rock, paper, scissors game.
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:
Just repeating is of course a bit boring because the computer does not choose anything. We will make that ourselves later.
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?
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 crystall 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 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.
## Example Hedy code
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?
print Olá mundo!
An error occurred.
An error occurred.
Something went according to plan.