Practice. Pick and Move to the Sushi Center of the Box
In this chapter, you'll get tasked with picking up sushi and moving it to a designated spot.
Let's quickly recap the methods you'll be using:
pickSushi()
: This method allows the ninja to pick up sushi from the current cell and add it to the inventory.putSushi()
: This method enables the ninja to place sushi from the inventory onto the current cell.
Here's an example of how you might move a ninja to pick up a sushi and place it in a new location:
ninja.js
Tehtävä
Swipe to start coding
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 3
ninja.js
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Awesome!
Completion rate improved to 3.57
Practice. Pick and Move to the Sushi Center of the Box
Pyyhkäise näyttääksesi valikon
In this chapter, you'll get tasked with picking up sushi and moving it to a designated spot.
Let's quickly recap the methods you'll be using:
pickSushi()
: This method allows the ninja to pick up sushi from the current cell and add it to the inventory.putSushi()
: This method enables the ninja to place sushi from the inventory onto the current cell.
Here's an example of how you might move a ninja to pick up a sushi and place it in a new location:
ninja.js
Tehtävä
Swipe to start coding
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Awesome!
Completion rate improved to 3.57Osio 1. Luku 3
ninja.js