NetLogo banner
 Home Page
 Download
 Models
 Community Models
 Extensions
 User Manual:
  Web version
  Printable version
  Chinese version
 FAQ
 Resources
 Contact Us

NetLogo Models Library:
Sample Models/Games

(back to the library)

Lunar Lander

[screen shot] Run Lunar Lander in your browser
uses NetLogo 4.1
requires Java 5 or higher
(system requirements)

Note: If you download the NetLogo application, every model in the Models Library (besides the Community Models) is included. If you have trouble running this model in your browser, you may wish to download the application instead.

WHAT IS IT?

This model is based on the arcade game, Lunar Lander. The object of the game is to land the red lunar module on the blue landing pad on the surface of the moon without crashing or breaking the module.

The lunar module is fragile, so you have to be moving extremely slowly to prevent damage when you touch down. You have one thruster that exerts a force depending on the tilt of the module. You have the ability to tilt right and left.

HOW TO USE IT

Buttons:
SETUP starts the game over by creating a new surface for you to navigate and poising your module above that surface, ready for descent.
GO starts the game. Be ready; the module will start descending fairly quickly.
LEFT and RIGHT tilt the module back and forth
THRUST fires your rockets according to your current tilt.

Sliders:
PLATFORM-WIDTH controls the width of the blue landing pad created at setup, a wider landing pad makes an easier target.
TERRAIN-BUMPINESS controls the variation in the elevation of the lunar surface. More bumpiness may mean you will have large obstacles to maneuver around.
THRUST-AMOUNT controls the magnitude of the force of your rockets.

THINGS TO NOTICE

When terrain-bumpiness is very high some of the randomly generated surfaces are not navigable.

THINGS TO TRY

Try to land the module with the fewest adjustments.

Increase the THRUST-AMOUNT to make the game harder.

EXTENDING THE MODEL

Currently, collisions with the edges of the module are not detected, so you can graze the side of a peak with the edge of the module without crashing. It would be more realistic if these crashes were detected.

Add levels to the game by continually making the terrain bumpier, the platform smaller, or by some other method of making the game more difficult, perhaps alien spaceships.

Try to write a robot pilot that will automatically land the module safely.

NETLOGO FEATURES

This model uses the RANDOM-POISSON reporter to create the terrain. See its entry in the NetLogo Dictionary, and also http://mathworld.wolfram.com/PoissonDistribution.html.

As in many NetLogo games the EVERY command is used to control the speed of the game.

RELATED MODELS

Projectile Attack, Gravitation

HOW TO CITE

If you mention this model in an academic publication, we ask that you include these citations for the model itself and for the NetLogo software:
- Wilensky, U. (2005). NetLogo Lunar Lander model. http://ccl.northwestern.edu/netlogo/models/LunarLander. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.
- Wilensky, U. (1999). NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.

In other publications, please use:
- Copyright 2005 Uri Wilensky. All rights reserved. See http://ccl.northwestern.edu/netlogo/models/LunarLander for terms of use.

COPYRIGHT NOTICE

Copyright 2005 Uri Wilensky. All rights reserved.

Permission to use, modify or redistribute this model is hereby granted, provided that both of the following requirements are followed:
a) this copyright notice is included.
b) this model will not be redistributed for profit without permission from Uri Wilensky. Contact Uri Wilensky for appropriate licenses for redistribution for profit.

(back to the NetLogo Models Library)