物件與朋友 Objects and Friends

學習使用turnTo!請更正第二行指令的步數。
Learn to use turnTo! Please fix the number of step in second line.
答案 Answer↓↓
要先過橋(bridge)才能“turnTo banana”。第1及3行的指令對嗎?
Have to cross the bridge before “turn To banana”. Do the first and the third line correct?
編程可以有多於一種的編寫方法:
The same result can have more than one coding solutions:
答案 Answer↓↓
行10步好像不夠,試試行20步。
It is enough for only step 10? Try to step 20.
答案 Answer↓↓
猴子要向前行6步才能乘搭烏龜!那麼第一行的指令應該寫入甚麼?
Monkey needs to step 6 forward to ride on turtle. So what we need to type in the first line?
答案 Answer↓↓
烏龜先或是猴子先行?如果是烏龜先行,牠要行多少步?
Who step first? Turtle or Monkey? How many step is needed if turtle step first?
答案 Answer↓↓
還記得turnTo嗎?猴子要先面向烏龜才能走向烏龜!
Do you remember tuenTo? Monkey has to face turtle before step to turtle.
看看程式是如何運行的:
Let see how the codes run:
答案 Answer↓↓
烏龜要先轉左還是轉右?
Turtle needs to turn left or right first?
答案 Answer↓↓
烏龜也懂得turnTo:turtle.turnTo banana
Turtle also knows turnTo: turtle.turnTo banana
編程可以有多於一種的編寫方法:
Same result can have more than one coding solutions:
答案 Answer↓↓
試試跟著箭咀走。先到達banana[2]再去小島(island)。
Follow the arrow. Arrive banana[2] then go to island.
*物件(objects)是指在編程過程中會互相影響的東西,在這一關中,猴子、烏龜、香蕉、小島都是物件。而每一個物件都要其獨一的名字,留心看看每條香蕉的編碼都不一樣呀!
*”Objects” are everything in the scene we can interact with. In this challenge, monkey, turtle, banana, island are object. Each object has its own name. There are different numbers for different bananas!
編程可以有多於一種的編寫方法:
Same result can have more than one coding solutions:
答案 Answer↓↓
試試跟著箭咀走!
Follow the arrow!
看看程式是如何運行的:
Let see how the codes run:
答案 Answer↓↓