pgrange / nelevator

An elevator engine with scoring for pedagogy and fun
0 stars 1 forks source link

Check max number of people in elevator #2

Open pgrange opened 9 years ago

pgrange commented 9 years ago

An elevator can have a maximum capacity.

If more people than the capacity are inside the elevator, the elevator must raise an alarm and stop moving until enough people have gone outside the elevator.