World 1: First steps
此页面需较新浏览器(支持 SharedArrayBuffer)。请升级 Chrome、Edge、Firefox 或 Safari 至最新版本。
English
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 |
English
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.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Walk your pet home. Home is 3 squares to the right. Print one move on each line: up, down, left, right 或 dig.
点击“运行”查看此处输出。
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
A tree is in the way. Go right, then down, then right to reach home.
点击“运行”查看此处输出。
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Collect the star, then walk home. Walk on the star square to collect it.
点击“运行”查看此处输出。
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Do not walk into the water! Go around the pond to reach home.
点击“运行”查看此处输出。
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Collect both stars, then go home. The pet starts on the right.
点击“运行”查看此处输出。
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Treasure is buried at the X. Stand on it and print dig. Then walk home.
点击“运行”查看此处输出。