3 ms·
How are the passengers generated? Do they follow a realistic distribution, or are they just completely random? The game would be a lot more fun with realistic
by joelthelion 12y ago
How are the passengers generated? Do they follow a realistic distribution, or are they just completely random?
The game would be a lot more fun with realistic or even real measured workloads.
- magwo 12y agoDev here. :) They spawn at a fixed rate, but at random floors, with 50% spawning at the bottom floor. I agree it would be more interesting if there were patterns, distributions, more popular floors etc. Haven't gotten around to implementing it. There's a small unused bit of code here intended for this: https://github.com/magwo/elevatorsaga/blob/master/challenges.js#L48 https://github.com/magwo/elevatorsaga/blob/master/challenges...