World 1: First steps
Welcome to Pet World
- Your pet is lost in Pet World. Your program is its map.
- Each line your program outputs is one move:
up,down,left,right. - Later you also find buried treasure with
dig.
Words for this world
| Word | Meaning |
|---|---|
| move | one step to the next square |
| order | which move comes first, next and last |
| star | walk on it to collect it |
One move on each line
- The pet reads your output from the top line to the bottom line.
- Trees and rocks block the way. Water is a splash!
OUTPUT "right"
OUTPUT "right"
OUTPUT "down"
- Press Run and watch your pet walk. Then press Check.
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
Walk your pet home. Home is 3 squares to the right. Output one move on each line: up, down, left, right ou dig.
Cliquez sur Exécuter pour voir le résultat ici.
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
A tree is in the way. Go right, then down, then right to reach home.
Cliquez sur Exécuter pour voir le résultat ici.
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
Collect the star, then walk home. Walk on the star square to collect it.
Cliquez sur Exécuter pour voir le résultat ici.
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
Do not walk into the water! Go around the pond to reach home.
Cliquez sur Exécuter pour voir le résultat ici.
Difficulté 2/5 · 140 pièces + un petit bonus lors de la première réussite aujourd'hui
Collect both stars, then go home. The pet starts on the right.
Cliquez sur Exécuter pour voir le résultat ici.
Difficulté 2/5 · 140 pièces + un petit bonus lors de la première réussite aujourd'hui
Treasure is buried at the X. Stand on it and output dig. Then walk home.
Cliquez sur Exécuter pour voir le résultat ici.