Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/slaveofcode/elevator-test
Solve the Elevator Problem
https://github.com/slaveofcode/elevator-test
Last synced: about 8 hours ago
JSON representation
Solve the Elevator Problem
- Host: GitHub
- URL: https://github.com/slaveofcode/elevator-test
- Owner: slaveofcode
- License: mit
- Created: 2024-06-08T02:16:51.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-11T04:50:47.000Z (2 months ago)
- Last Synced: 2024-09-11T11:30:58.943Z (2 months ago)
- Language: JavaScript
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Elevator Test
1. Modify the code to be more readable.
2. Try to convert to object oriented, simplicity & reusability is the main point.
3. Currently, the elevator would run one-by-one, solve the code so those 3 elevator can serve the in a parallel way without conflicting each other when serving on the same floor (1 floor 1 elevator).
4. Fix incorrect Person floor position with the "Waiting" text, that must be a waiting person on specific floor, ready to pickup.
5. Create loop 100x for elevators serve more people with random floor and random destination, the destination must different than the source floor
6. Optimize the number of people served by elevator, e.g. move faster and smooth without removing the animation.
7. When serve finished, move back the elevator to 1st floor
8. Shorter time to serve is better.