NASA just parked its InSight lander on Mars. Yes, Mars. This is a pretty big deal since quite a few Mars missions didn't make it. It's no wonder I get super excited about missions to Mars.

For this particular mission, the lander, protected by a heat shield, used the Mars atmosphere to slow down. After that, it deployed a high-speed parachute to further decrease the speed. Finally, the lander detached from the parachute and traveled the last part of the journey using rockets to control its descent.

Now for the real question, though: Could you be in charge of the InSight landing? What if you did a manual landing, would the robot survive? Let's find out.

Before getting into the game, let's go over the basic physics. To keep this manageable, I'm focusing on the rocket-powered landing portion of this mission. During the spacecraft's descent, there are basically two forces acting on it. There is the downward gravitational force and an upward force from the spacecraft's rockets. The gravitational force just depends on the local gravitational field and the mass of the spacecraft. On Mars, this gravitational field is a bit lower than on Earth, with a value of around 3.71 Newtons per kilogram (compared to 9.8 N/kg on Earth). This gravitational field is essentially constant in strength as long as you are close to the surface of Mars.

Although the gravitational field is constant, the mass of the spacecraft is not. As it uses its rockets, it loses mass (because the rocket engine works by shooting out fuel). This means that the gravitational force also changes a little bit—but of course the whole spacecraft isn't made of fuel. The total mass of the fuel is only about 16 percent of the total mass.

The changing mass of the spacecraft also has an impact on its motion. According to the momentum principle, the total force (gravitational plus rocket) is equal to the time rate of change of the momentum. However, the momentum is defined as the product of mass and velocity. So, a constant net force on the spacecraft will mean a momentum that changes at a non-constant rate since the mass is changing. Yes, it gets tricky.

OK, let's jump into the game. Here's how it works.

Start with the spacecraft fully fueled and 50 meters above the ground.

You get to adjust the rocket thrust.

The change in rocket velocity depends on the amount of thrust.

The change in fuel mass also depends on the amount of rocket thrust.

You want to get the rocket to reach the ground while traveling less than 1 m/s (it should actually be even slower).

That's it. Click "run" to start and then adjust the slider at the bottom for the rocket thrust. The program also displays the vertical velocity and the amount of fuel you have left. This is essentially a dimensional version of the classic video game—Lunar Lander.

This is more difficult that it seems. The problem is that we often think of a direct connection between force and motion such that a greater force makes it move faster. Aha! Not so fast. Actually, a greater force makes a greater CHANGE in motion. As the lander is moving down, you need to increase the force to prevent it from speeding up as it falls. But if you give it too much thrust, the lander slows down so much that it actually starts to speed up in the opposite direction. That's not landing—that's taking off.

Now for some homework. See if you can get the lander to the ground (safely) in the least amount of time. Now try creating an algorithm for the magnitude of the thrust (not user-controlled) that makes the shortest time landing. It will be fun.

More Great WIRED Stories