Conteúdo do Curso
Ninja Game
Ninja Game
Challenge: Build letter K
Welcome to the "Build Letter K" challenge! In this chapter, you'll put your programming skills to the test by constructing the letter "K" using the Ninja Game.
Before you begin, let's quickly recap the ninja methods and features you've learned:
Ninja Methods:
goRight()
,goLeft()
,goUp()
,goDown()
: Move the ninja one cell in the specified direction.pickSushi()
: Pick up sushi from the map and add it to your inventory.putSushi()
: Place sushi from your inventory onto a cell.objectUp()
,objectDown()
,objectRight()
,objectLeft()
: Determine the object in the next cell in the specified direction, returning "wall", "sushi", or "empty".
Programming Concepts:
- Functions: Create reusable blocks of code to perform specific tasks.
- Decomposition: Break down complex problems into smaller, manageable parts.
- Loops: Use
for
andwhile
loops to repeat actions. - Conditional Statements: Use
if-else
statements to make decisions based on conditions.
Tarefa
Swipe to begin your solution
Solução
Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 5. Capítulo 1
ninja.js
Challenge: Build letter K
Welcome to the "Build Letter K" challenge! In this chapter, you'll put your programming skills to the test by constructing the letter "K" using the Ninja Game.
Before you begin, let's quickly recap the ninja methods and features you've learned:
Ninja Methods:
goRight()
,goLeft()
,goUp()
,goDown()
: Move the ninja one cell in the specified direction.pickSushi()
: Pick up sushi from the map and add it to your inventory.putSushi()
: Place sushi from your inventory onto a cell.objectUp()
,objectDown()
,objectRight()
,objectLeft()
: Determine the object in the next cell in the specified direction, returning "wall", "sushi", or "empty".
Programming Concepts:
- Functions: Create reusable blocks of code to perform specific tasks.
- Decomposition: Break down complex problems into smaller, manageable parts.
- Loops: Use
for
andwhile
loops to repeat actions. - Conditional Statements: Use
if-else
statements to make decisions based on conditions.
Tarefa
Swipe to begin your solution
Solução
Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 5. Capítulo 1
Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo