Earlier quoted context omitted.
I think I read once that when elevators still had operators, larger buildings would have one or more dispatch agents in the lobby that would line people up at the appropriate elevator for the range of floors they intended to visit.
I used to work in a 50-story building that had banks of elevators, each of which was hard-coded to only visit the lobby and the appropriate range of floors. For example, the first bank would only visit 2-13, the 2nd bank would visit 14-25, etc. The elevator cars only had buttons inside for the floors they were allowed to visit. There were also a couple service/freight elevators that could visit all floors (including…
So You Think You Can Program an Elevator
71–80 of 118 posts
Re: So You Think You Can Program an Elevator
#72Very similar immediately playable JavaScript version. http://play.elevatorsaga.com/ Which I'm now closing as I lost too much time to this the first time I saw it.
This is fantastic. Are there other good programming challenge / games like this? I'd love to see a collection of other similar games.
Re: So You Think You Can Program an Elevator
#73Re: So You Think You Can Program an Elevator
#74Very similar immediately playable JavaScript version. http://play.elevatorsaga.com/ Which I'm now closing as I lost too much time to this the first time I saw it.
This is fantastic. Are there other good programming challenge / games like this? I'd love to see a collection of other similar games.
Re: So You Think You Can Program an Elevator
#75Earlier quoted context omitted.
Totally agree. That's basically the challenge that I wanted to make, but I found that I bit off more than I could chew.
so are you saying that, similar to the elevator programming challenge itself, writing the elevator programming challenge was more difficult than it looked? cool. that probably put a bigger smile on my face than it should've, but still cool.
Re: So You Think You Can Program an Elevator
#76A project during my graduate work was to solve this problem. You can read my write up, which includes pseudo-code for the best algorithm I found[1]. Long story short: a simple, rules-based algorithm defeated my best efforts at having multiple elevators working together to coordinate their action. [1]: https://clarkmoody.com/Moody_AgentBasedElevatorControl.pdf
This looks really funny. Is it a spoiler if I haven't done the posted link yet? If so I'll read it later :)
Re: So You Think You Can Program an Elevator
#77Re: So You Think You Can Program an Elevator
#78Re: So You Think You Can Program an Elevator
#79Very similar immediately playable JavaScript version. http://play.elevatorsaga.com/ Which I'm now closing as I lost too much time to this the first time I saw it.
This is fantastic. Are there other good programming challenge / games like this? I'd love to see a collection of other similar games.
Untrusted: https://alexnisnevich.github.io/untrusted/