- Modify the code to be more readable.
- Try to convert to object oriented, simplicity & reusability is the main point.
- 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).
- Fix incorrect Person floor position with the "Waiting" text, that must be a waiting person on specific floor, ready to pickup.
- Create loop 100x for elevators serve more people with random floor and random destination, the destination must different than the source floor
- Optimize the number of people served by elevator, e.g. move faster and smooth without removing the animation.
- When serve finished, move back the elevator to 1st floor
- Shorter time to serve is better.
-
Notifications
You must be signed in to change notification settings - Fork 4
Solve the Elevator Problem
License
slaveofcode/elevator-test
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Solve the Elevator Problem
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published