Live data from Hacker News

Elevator Saga – An elevator programming game

play.elevatorsaga.com

11–20 of 108 posts

Re: Elevator Saga – An elevator programming game

#11
I got to Challenge #5 by just having the elevators go to every floor like in the first example. It'd be nice to have an earlier challenge with only a single elevator force you to have a more complex controller. With 4 elevators going at a time, it's harder for me to "debug" and figure out how to use the API.

Re: Elevator Saga – An elevator programming game

#13

I got to Challenge #5 by just having the elevators go to every floor like in the first example. It'd be nice to have an earlier challenge with only a single elevator force you to have a more complex controller. With 4 elevators going at a time, it's harder for me to "debug" and figure out how to use the API.

> I got to Challenge #5 by just having the elevators go to every floor like in the first example.

Strange, that strategy doesn't allow me to get past challenge 2 (just going to every floor one after the other).

Re: Elevator Saga – An elevator programming game

#14

I got to Challenge #5 by just having the elevators go to every floor like in the first example. It'd be nice to have an earlier challenge with only a single elevator force you to have a more complex controller. With 4 elevators going at a time, it's harder for me to "debug" and figure out how to use the API.

> I got to Challenge #5 by just having the elevators go to every floor like in the first example. Strange, that strategy doesn't allow me to get past challenge 2 (just going to every floor one after the other).

Guess, I got lucky, haha. I should probably go back to challenge 2 and learn how to program these then.

Re: Elevator Saga – An elevator programming game

#17
A 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

Re: Elevator Saga – An elevator programming game

#20
In challenge 3, I got the following error:

There is a problem with your code: .init@http://play.elevatorsaga.com/app.js line 66 > eval:12:9 createWorldController/controller.start@http://play.elevatorsaga.com/world.js:185:13 app.startChallenge@http://play.elevatorsaga.com/app.js:175:9 @http://play.elevatorsaga.com/app.js:216:13 riot.observable/el.trigger@http://play.elevatorsaga.com/libs/riot.js:45:1 pop@http://play.elevatorsaga.com/libs/riot.js:89:31

Post reply on HN