Challenge: Align two columns
Welcome to the "Align Two Columns" challenge!
Let's recap the ninja methods and features you've learned:
Ninja Methods:
go_right(),go_left(),go_up(),go_down(): Move the ninja one cell in the specified direction.pick_sushi(): Pick up sushi from the map and add it to your inventory.put_sushi(): Place sushi from your inventory onto a cell.object_up(),object_down(),object_right(),object_left(): 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 
forandwhileloops to repeat actions. - Conditional Statements: Use 
if-elsestatements to make decisions based on conditions. 
Tehtävä
Swipe to start coding
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 5. Luku 4
ninja.py
index.html
preset.py
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Tiivistä tämä luku
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 3.57
Challenge: Align two columns
Pyyhkäise näyttääksesi valikon
Welcome to the "Align Two Columns" challenge!
Let's recap the ninja methods and features you've learned:
Ninja Methods:
go_right(),go_left(),go_up(),go_down(): Move the ninja one cell in the specified direction.pick_sushi(): Pick up sushi from the map and add it to your inventory.put_sushi(): Place sushi from your inventory onto a cell.object_up(),object_down(),object_right(),object_left(): 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 
forandwhileloops to repeat actions. - Conditional Statements: Use 
if-elsestatements to make decisions based on conditions. 
Tehtävä
Swipe to start coding
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 5. Luku 4
ninja.py
index.html
preset.py