Skip to content

An emulation of an airport environment, in which planes can take off and land.

Notifications You must be signed in to change notification settings

webbydevvy/airport_challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Airport Challenge

Build Status

Synopsis

Welcome to my repo for the Makers Academy weekend challenge 1:1!

My task was to create an emulation of an airport environment, in which planes can take off and land. To do this, I needed to implement guard classes to defend against the appropriate edge case, e.g planes are only able to take off from their current airport, etc.

Key Focus

Object-Oriented Design (OOD) & Test-Driven Development (TDD).

Implementation

  1. Clone this repository, and change into the correct directory.
$ git https://github.com/kaaristrack/airport_challenge
$ cd airport_challenge
  1. Open in IRB or PRY.
$ pry
  > require './file_collective.rb'
  1. Create a new airport.
$ pry
  > airport = Airport.new
  1. Populate your new airport with a plane object.
> plane = Plane.new
> airport.landing(plane)
=> #<Airport:0x00007ffc10079a18 @airport_hangar=[], @capacity=5, @taxied_planes=0, @weather=#<Weather:0x00007ffc100799c8>>
  1. Marvel at the automatically updating capacity!

Demo Reel 🎥

[COMING SOON]

About

An emulation of an airport environment, in which planes can take off and land.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages