Mission
Mission description.
Write Python style commands to move a rocket across a grid, avoid obstacles, collect fuel, handle danger zones and reach the planet.
The code box starts mostly empty. Use the command bank below, but be careful: some examples are wrong on purpose.
Some code examples work. Some fail.
Mission description.
move_right()
move_left()
move_up()
move_down()
These move the rocket one square at a time.
scan()
land()
status()
Some planets need scanning before landing. status() checks position and fuel.
repeat 3:
move_right()
The indented command runs three times. The spaces before the command matter.
move_forward()
go_right()
move right()
land
move_right(3)
repeat three:
These are wrong on purpose. Run them and read the mission log to work out why.
Mission Builder is not only about moving on a grid. Real space missions need maths. This lab compares everyday distances with the Moon, Mars and Pluto.
Three quick maths games built from real space science. Pick one and test your skills.
A spacecraft orbits a planet. If it travels -- km in one orbit and takes -- seconds, what is its average speed in km/s?
Formula: speed = distance ÷ time
This teaches real coding behaviour: choose commands, type them carefully, run the program, read the error, debug the route, and try again. The space theme gives a clear reason for coordinates, loops, sequencing, fuel and logic.
The Speed Lab adds the maths behind the mission: speed equals distance divided by time. It also helps learners visualise huge astronomy distances by comparing them with rooms, miles, the Moon, Mars and Pluto.