Games

Elevator Saga

The elevator programming game: write JavaScript that moves the elevators and gets everybody to their floor in time.

Open in its own tab

The game only loads when you start it (1.4 MB). Needs a keyboard.

About the game

Each challenge sets a goal — transport so many people in so many seconds, keep the waiting time low, use few moves. Your code reacts to events such as a button pressed on a floor or an elevator becoming idle.

A playful introduction to event-driven programming and scheduling. The Documentation link inside the game explains the API; your code is kept in the browser.

Under the hood

Plain JavaScript, CodeMirror editor; the simulation can run in fast-forward.

Controls

KeyAction
Editorwrite the code that drives the elevators
Applyrun the challenge with your code
− and +slow down or speed up the simulation

Credits

By
Magnus Wolffelt and contributors
Licence
MIT
Source code
github.com/magwo/elevatorsaga
Changes for this site
SOURCE.txt
Size
1.4 MB