Skip to content
KBHXgamesAll games

Play Elevator Saga Online

Program a building's elevators in JavaScript and refine your logic until it passes each of 18 graded challenges.

Elevator Saga gameplay screenshot
  • Best with keyboard & mouse

Elevator Saga at a glance

Genre
Puzzle Games
Play with
Keyboard, Mouse
On phones
Best on a computer
Players
1 player
Price
Free, no sign-up
License
MIT

Elevator Saga is a coding game in which you never ride or press anything yourself. Instead, you write JavaScript that controls when and where each car travels, and you watch little passengers hop on and off as your program runs. Every level has a target to hit, and sloppy logic leaves people waiting in the lobby. It is a hands-on way to practice event-driven code.

The Goal

Hit the target for each level before it fails. Some ask you to deliver a certain number of riders within a time limit. Others limit how many floors your cars may cover, or end the attempt if anyone waits too long. Eighteen levels are graded, and a nineteenth is an open sandbox with no target.

How a Round Plays Out

The upper half shows the building, where riders spawn and call for a car. The lower half holds an editor with a basic sample program.

  1. Your program is an object with an init function, which runs a single time, and an update function, which runs repeatedly.
  2. In init, hook events onto every car, such as idle, a floor being requested from inside, or arrival at a floor.
  3. Hook the up and down call events onto every floor as well.
  4. Inside those handlers, send cars to floors, read how loaded a car is, or rearrange its queue of stops.
  5. Press Apply to restart with your new code and watch the numbers.

Early levels give you one car and a short building. Later ones add multiple cars of different sizes and up to 21 floors.

Keys and Buttons for Elevator Saga

Keyboard, mouse and touch controls for Elevator Saga
What you do⌨ Keyboard🖱 Mouse
Type and edit your elevator programType in the code editor (Tab inserts four spaces)Click inside the editor to place the cursor
Run your code from the start of the challenge—Click "Apply"
Start, pause or restart the simulation—Click the Start / Pause / Restart button
Change simulation speed—Click the minus or plus icon next to the speed number
Go to the next challenge after a win—Click "Next challenge"
Save, reset, or bring back code from before a reset—Click "Save", "Reset" or "Undo reset"

Winning Strategies

  • Fix the sample first. It only bounces between the two lowest floors, so start by sending cars to requested floors.
  • Respond to waiting riders. Use the floor call events so empty cars travel to where people stand.
  • Pass by when packed. Check the load before stopping, because a crowded car has no room.
  • Match the level’s rule. When travel is limited, gather several riders before moving.
  • Speed up the clock. A faster time scale shows quickly whether a plan holds up.

Handy Details

  • The editor-heavy layout is built for a computer with a real keyboard.
  • An Undo reset button restores your code after an accidental wipe.

Who Should Play It

Elevator Saga is perfect for programmers, students and curious tinkerers who enjoy solving problems with code. If you like coding puzzles or logistics and automation games, it turns an everyday ride into a satisfying design problem.

Played and checked by the KBHX Games team · updated

Elevator Saga: Questions and Answers

Can a beginner play Elevator Saga?

Some JavaScript knowledge helps, yet the opening level only asks you to tweak the sample code a little. A built-in Help page documents each car and floor function with short snippets, so you can pick things up as you go.

I edited my code, so why do the cars sit still?

Changes take effect only after you press Apply or restart the level. If there is a typo, or the init or update function is missing, a red error appears above the editor and nothing moves until it is fixed.

Will my program still be there tomorrow?

Yes. Your code is stored in the browser shortly after you pause typing, and the Save button writes it at once. Wiping browser data will remove it, so keep a copy of anything you are proud of.

If You Liked Elevator Saga, Try These