Rullst AcademyRullst Academy/Lesson
Rust: first sparks · Lesson 06 / 06

Mission: explorer card

The station needs a travel card: the robot’s fictional name and total seeds. Combine text, names and a simple calculation.

Learning paths8 min

Let's discover together

  1. 1

    The robot’s name is text; its seed count is a number. Both can appear in the same message using different placeholders.

  2. 2

    First calculate the total: starting seeds plus delivery. Then build the message. Changing the robot’s name should not change the calculation.

  3. 3

    Also test a delivery of zero. A good experiment compares different cases. After finishing, you can download the Rust project and try other values on a computer.

✦
YOUR MISSION

Check a complete program and predict two results before downloading the project.

Now it's your turn

Discovery workshop

Your first Rust card

Lumi starts with 4 seeds. Compare a delivery of 3 with a delivery of 0.
Mini experiment

Learning simulation: compare cards and check your predictions. The browser is not compiling Rust or starting a server.

fn main() { let name = "Lumi"; let seeds = 4 + 3; println!("{}: {}", name, seeds); }
Build your answers and check when you are ready.
A moment to understand

If we change only the robot’s name, should the seed total change?

I need a hint

The calculation adds two quantities; the name only goes into the displayed message.

Loading your journey…

How can I tell what I learned?

Use the objectives and challenge below for reflection or a conversation with someone who can help. This is guided self-assessment: it sends no answers, awards no XP and does not automatically verify independence.

In Discovery, explain an idea in your own words and apply it to another simple example. Drawings, speech and adult support are valid. Record what help you needed.

Your transfer challenge

In the downloaded project, invent another robot and change one quantity at a time. Before running, write down the expected output. Then compare.

Keep evidence: prediction, attempt, result, an original change and what you still cannot explain. Seek feedback when possible; if studying alone, return later without copying and compare attempts.

Try again another time

After a break, explain the idea without opening the solution and try a different example. Compare with your first attempt: what can you do independently, and where do you need a hint? You may write, speak or draw; choose a way to check the same idea. Record help received, including AI, and revisit the part you need. There is no universal deadline or extra XP for this record.

Completions and XP record Rullst Academy assessments. An introductory track can help everyday life and prepare further study; alone it does not prove complete mastery or professional readiness. Level indicates depth, not age.

Take it with you

In the downloaded project, invent another robot and change one quantity at a time. Before running, write down the expected output. Then compare.

Show me the Rust behind it

This part is optional. You don't need to memorize the code to continue.

fn main() { let name = "Lumi"; let seeds = 4 + 3; println!("{}: {}", name, seeds); }
At your own pace

My files and GitHub

Every lesson can become your own record: code, notes or a practice plan. Saving a file to GitHub is optional and does not change your XP.

Student guide

The editor and downloads open when this lesson is available to your account. Check access below or return to the track map.

Checking your access to this lesson…

Rullstpetbot

AI can make mistakes. Check the lesson material.