
Elevator Saga
A programming puzzle game. Write JavaScript to control a building elevators and transport passengers as efficiently as possible.
Created by magwo
Create a free account to get instant access
How to Use
• Write JavaScript code to control elevators and transport people efficiently between floors • Use the code editor at the bottom to program elevator behavior using the provided API • Click "Apply" to test your code, then click the "Start" button to run the simulation • Your goal is to complete each challenge by meeting specific requirements like transporting a certain number of people within time limits • Program elevators to respond to events like button presses and idle states using elevator.on() methods • Key functions: elevator.goToFloor() to move elevators, elevator.destinationQueue to manage stops • Monitor stats on the right side: transported people, waiting times, and efficiency metrics • Use Reset to restore default code, Save to store your progress • Speed up simulation with +/- buttons next to the time scale • People appear as icons wanting to travel between floors - minimize their waiting time • Each challenge gets progressively harder with more floors, elevators, and people to transport