Original problem: The Elevator Provide code that simulates an elevator. You may use any language (recommend using java or Python). Please upload your code Git Hub for a discussion during your interview with our team. Additionally, document all assumptions and any features that weren't implemented. Please be prepared to discuss the assumptions and features that were not implemented during your interview.
Overall tech stack:
- Python
- Python State Machine Framework
Specific Requirements for this program:
- Please make sure state machine is installed by running command
pip install python-statemachine
Assumptions:
- There is only 1 elevator
- There are no other associated requirements to push the button (extra security measures like a room key)
Features not implemented:
- Multiple elevators on a floor
- Selecting floor number internally
- Loop within action to automatically run elevator
Getting Started:
- Git clone repo https://github.com/abisuresh/ElevatorProblem
- Open app in IDE
- Run within IDE or use command
python elevator.py