Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Practice. Pick and Move to the Sushi Center of the Box | Basic Controls
Practice
Projects
Quizzes & Challenges
Quiz
Challenges
/
Ninja Game Clone
Section 1. Chapitre 3
ninja.js

ninja.js

bookPractice. Pick and Move to the Sushi Center of the Box

Glissez pour afficher le menu

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

ninja.js

copy
Tâche

Swipe to start coding

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 3
ninja.js

ninja.js

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

some-alt