World 1: First steps
Welcome to Pet World
- Your pet is lost in Pet World. Your program is its map.
- Each line your program prints 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!
print("right")
print("right")
print("down")
- Press Run and watch your pet walk. Then press Check.
Độ khó 1/5 · 100 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
Walk your pet home. Home is 3 squares to the right. Print one move on each line: up, down, left, right hoặc dig.
Nhấn Chạy để xem kết quả ở đây.
Độ khó 1/5 · 100 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
A tree is in the way. Go right, then down, then right to reach home.
Nhấn Chạy để xem kết quả ở đây.
Độ khó 1/5 · 100 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
Collect the star, then walk home. Walk on the star square to collect it.
Nhấn Chạy để xem kết quả ở đây.
Độ khó 1/5 · 100 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
Do not walk into the water! Go around the pond to reach home.
Nhấn Chạy để xem kết quả ở đây.
Độ khó 2/5 · 140 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
Collect both stars, then go home. The pet starts on the right.
Nhấn Chạy để xem kết quả ở đây.
Độ khó 2/5 · 140 xu + phần thưởng nhỏ khi hoàn thành lần đầu tiên hôm nay
Treasure is buried at the X. Stand on it and print dig. Then walk home.
Nhấn Chạy để xem kết quả ở đây.