Code for http://play.elevatorsaga.com.
This solution got through level 7
(are people measuring how consistently their solutions make it through each challenge?)
Areas for Improvements:
- Sorting / prioritzation on the
this.getPressedFloors()
array. - Isn't DRY; functionality needs to be pulled out into.. well functions.
- Not taking advantage of much of the API -- hadn't really gotten the floors up/down pushes rquests going, etc.
Link to the solutions wiki (this link is also on the Elevator Sage site of course)