Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
If-Else Statements Practice. Clear the Storage | If-Else Statements
Ninja Game
course content

Course Content

Ninja Game

Ninja Game

1. Basic Controls
2. Functions
3. Loops
4. If-Else Statements
5. Challenges

book
If-Else Statements Practice. Clear the Storage

Your task is to help our ninja clear out all the sushi from a cluttered storage room. The storage room is a grid filled with sushi pieces scattered around, and it's your job to collect them all.

Task
test

Swipe to show code editor

Goal: Collect all sushi

Use if-else statements to check the surroundings and decide the ninja's actions

Solution

Starter Map

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 4. Chapter 3
js

ninja.js

html

index.html

js

preset.js

toggle bottom row

book
If-Else Statements Practice. Clear the Storage

Your task is to help our ninja clear out all the sushi from a cluttered storage room. The storage room is a grid filled with sushi pieces scattered around, and it's your job to collect them all.

Task
test

Swipe to show code editor

Goal: Collect all sushi

Use if-else statements to check the surroundings and decide the ninja's actions

Solution

Starter Map

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 4. Chapter 3
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt