Skip to content

Allegro-based single elevator controller with passenger event playback.

Notifications You must be signed in to change notification settings

Laernos/Elevator-Simulation

Repository files navigation

A real-time, Allegro-powered visualization of a single-elevator controller. The simulator replays a scripted set of passenger requests, animates pickup/drop-off, and reports status in real time.

Prerequisites

  • C++17 toolchain (g++ or clang++)
  • Allegro 5

How to Compile (macOS)

brew install allegro
g++ -std=c++17 ECGraphicViewImp.cpp SimpleObserver.cpp ElevatorSimulator.cpp $(pkg-config allegro-5 allegro_main-5 allegro_font-5 allegro_primitives-5 allegro_image-5 allegro_ttf-5 --libs --cflags) -o ElevatorSimulator

How to Run

./ElevatorSimulator test-file-1.txt

About

Allegro-based single elevator controller with passenger event playback.

Resources

Stars

Watchers

Forks

Languages