Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
If-Else Statements Practice. Roll the Sushi | 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. Roll the Sushi

In this chapter, you will have the opportunity to practice using if-else statements in the Ninja Game. Our ninja friend has been tasked with an important mission: to roll sushi back into designated storage cells. These storage cells are conveniently located one cell down from the sushi's current position

Task
test

Swipe to show code editor

Goal: Roll all sushi into the storage cells.

Use if-else statements to determine when to roll sushi into storage cell.

Solution

Starter Map

Goal 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 2
js

ninja.js

html

index.html

js

preset.js

toggle bottom row

book
If-Else Statements Practice. Roll the Sushi

In this chapter, you will have the opportunity to practice using if-else statements in the Ninja Game. Our ninja friend has been tasked with an important mission: to roll sushi back into designated storage cells. These storage cells are conveniently located one cell down from the sushi's current position

Task
test

Swipe to show code editor

Goal: Roll all sushi into the storage cells.

Use if-else statements to determine when to roll sushi into storage cell.

Solution

Starter Map

Goal 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 2
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