Skip to content

samir1/elevator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Elevator Assignment sim.rb runs the Simulation. sim.rb creates a building and adds people to the building. Simulation.run(n) runs Simulation.clock_tick n times. Simulation.clock_tick steps the instance of the building. Each step of the building steps instances of Floor and Elevator. In each step of Floor, the instances of Person enter an elevator if there is an elevator at the floor. In each step of Elevator, it moves to a different floor and unloads people if it can. The elevator moves to floors that are in the queue of floors to visit. If there are no floors to visit, the elevator travels to the bottom floor.

Code Climate

About

COSI 105b assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages