Rocket has a new idea for the auto-pilot.
He wants the ship to climb a little more.
Can a line add one to a box?
Nova beeps. Yes, it can!
Coders call it changing the box.
Rocket cannot wait to try it.
Change height by 1 adds one.
The box held 2.
Now it holds 3.
set height to 2 change height by 1 say height
After line one, the box holds 2.
After line two, it holds 3.
Nova peeks and says 3!
Build a flight up 4 spaces.
Start the box at 3.
Then add one before Nova flies.
What if a change line goes missing?
The box would stay stuck.
Raven writes that down as a clue.
set height to 4 change height by 1 change height by 1 say height
| after | box holds | true? |
|---|---|---|
| line 1 | 4 | ? |
| line 2 | 6 | ? |
| line 3 | 6 | ? |
| Nova says | 5 | ? |
Set fills the box.
Change adds to the box.
A logbook tracks every line.
Tomorrow: your own flights!