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
Swipe to start coding
Solución
¡Gracias por tus comentarios!
ninja.js
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Resumir este capítulo
Explicar el código en file
Explicar por qué file no resuelve la tarea
Genial!
Completion tasa mejorada a 3.57
Practice. Pick and Move to the Sushi Center of the Box
Desliza para mostrar el menú
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
Swipe to start coding
Solución
¡Gracias por tus comentarios!
ninja.js