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

ninja.js

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

Swipe to show 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
Task

Swipe to start coding

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 3
ninja.js

ninja.js

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt