Rory O’Kane
Rory O’Kane
Yes, handling Ctrl+Alt+S correctly lets users type special characters, which are not normally used in JavaScript. But it is possible that programmers would write foreign-language strings like console.log("[Winda zatrzymała](https://translate.google.com/#pl/en/Winda%20zatrzyma%C5%82a)") or...
A pair of methods like this would be a natural complement to the recently-added `elevator.getPressedFloors` method, which was added for #35 “Add direct way to get an array of pressed...
Then it sounds like this pull request can be fixed by changing ``` javascript elevator.trigger("entrance_available"); ``` to ``` javascript elevator.goToFloor(elevator.currentFloor(), true); ``` But I think before that line, you must...
Hmm, well, in both uses of the interface in `world.js`, we don’t need the whole queue logic, just a command to “wait on the current floor until all passengers have...
@apottere Are you calling `goToFloor` on the elevator interface, defined in `interfaces.js`? It sounds like you might be calling `goToFloor` on the unwrapped elevator, defined in `elevator.js`, which ignores the...
To add more detail, here is one “simple implementation” that sometimes passes challenges 2 and 3, but shouldn’t be able to. ``` javascript { init: function(elevators, floors) { var elevator...
I can confirm that this issue still exists. Here is a test case that demonstrates this behavior. Try running it on [challenge 2](http://play.elevatorsaga.com/#challenge=2). ``` javascript { init: function(elevators, floors) {...
@dbohdan wrote: > An indent-based syntax would make it impossible to implement one-liners with the equivalent of `sed -e` / `ruby -e` for Streem. Thus, indent-based syntax should not be...
How about single-player Pong, like practicing tennis against a wall? Remove the bricks from Breakout, and add a score counter for how many times the ball has bounced on the...
Yes, that sounds better in the long-term.