News for hackers. Stuff that matters.
Re:Elevator Saga: The elevator programming game by a2h on Thursday October 20, 2022 @08:21AM (#33273543)
My first experience with this game was actually during an interview. About halfway through I found the bug. The below code snippet will successfully solve all of the challenges.

    {
        init: function(elevators, floors) {
            world.transportedCounter = 500
        },
        update: function(dt, elevators, floors) {
            // We normally don't need to do anything here
        }
    }

There are no comments on this comment yet.