Affiche quelque chose avec
Demande quelque chose avec
Répète quelque chose avec
Bienvenue à Hedy! Au niveau 1, tu peux utiliser les commandes
Sur le côté gauche de votre écran se trouvent toutes les commandes du niveau 1.
Appuyez sur le bouton bleu et le code sera tapé pour toi!
Essayez le code toi-même avec le bouton vert «Exécuter le code» sous le champ de programmation de gauche.
Vous ne savez pas quoi programmer? Dans les onglets suivants, vous trouverez des idées sur les éléments à construire.
In level 1 you can make a story with a different main character that you enter yourself.
As the first line, use this code:
ask who is the protagonist of your story
After that first line, start with
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 who ... print He hears crazy noises everywhere print He's afraid this is a haunted forest
It is a pity that you can now only make sentences in which the main character is at the end of the sentence right? After practicing with this story, continue to level 2 and then to level 3, where you can make more and more complicated programs.
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 line 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?
▼ Montrer l'explication ▼
An error occurred.
An error occurred.
Something went according to plan.