Ninja Controls
In this chapter, you'll get more practice with controlling your ninja.
Recap of Ninja Methods
Here's a quick reminder of the methods you can use to control your ninja:
-
Movement Methods:
goRight(),goLeft(),goUp()andgoDown(). -
Sushi Methods:
pickSushi()andputSushi().
Example
Here's an example of how you might use these methods to move your ninja and collect sushi:
ninja.js
Swipe to start coding
Oplossing
Bedankt voor je feedback!
ninja.js
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Vat dit hoofdstuk samen
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 3.57
Ninja Controls
Veeg om het menu te tonen
In this chapter, you'll get more practice with controlling your ninja.
Recap of Ninja Methods
Here's a quick reminder of the methods you can use to control your ninja:
-
Movement Methods:
goRight(),goLeft(),goUp()andgoDown(). -
Sushi Methods:
pickSushi()andputSushi().
Example
Here's an example of how you might use these methods to move your ninja and collect sushi:
ninja.js
Swipe to start coding
Oplossing
Bedankt voor je feedback!
ninja.js