The Airport Challenge is a software implementation of a working airport, with planes, passengers, & a simulation of weather conditions. The task is to design the domain model, and write each class in Ruby with its respective methods fully test-driven with Rspec.
Responsibilites | Collaborators |
---|---|
Take off | Airport |
Land | Airport |
Be flying |
Responsibilities | Collaborators |
---|---|
Hold planes | Plane |
Be full | Plane |
Be empty | Plane |
Check the weather | Weather |
land planes | Plane, Weather |
Take off planes | Plane, Weather |
The weather module is responsible for returning a generated random number representing the probability of a storm and determining whether the weather is stormy or clear. Planes can only take off and land only in less severe or clear weather.