BecaLParker / airport_challenge

Fly!
Other
0 stars 0 forks source link

Airport needs to remember which specific plane instances are currently on the ground there #9

Closed BecaLParker closed 3 years ago

BecaLParker commented 3 years ago

(because a specific plane instance shouldn't be able to take-off if it's not at that airport)

BecaLParker commented 3 years ago

edgecase: planes can only take off from airports they are in

BecaLParker commented 3 years ago

Feature tests:

irb
2.6.5 :001 > require './lib/airport.rb' => true 2.6.5 :002 > airport = Airport.new => #<Airport:0x00007f86230da218 @capacity=4, @planes_in_port=[]> 2.6.5 :003 > airport.planes_in_port => [] 2.6.5 :004 > airport.planes_in_port.size => 0