Coder Social home page Coder Social logo

airport_challenge's Introduction

Introduction

The Airport Challenge is a self-completed Ruby project, which concludes week 1 of Maker's Academy.

This program controls the flow of planes at an airport, the primary users being air traffic control staff. As in real life, the program is able to check the status of a plane, authorises takeoff and landing, including the ability to prevent either from happening in the event of a storm.

How I tackled this challenge

After setting up the Feature Tests for each user story, I created unit tests for each of the classes.

The Airport class has the most responsibility in directing air traffic in and out of the airport. It interacts with the weather to determine flight conditions, and authorises planes to land and take off.

The Plane class allows instances of planes to be created. Each plane has attributes that return boolean values depending on whether the plane has landed or taken off, which allows the Airport to determine its status.

The Weather class determines, at random, whether it is be stormy or not.

What I achieved in this challenge

All user stories have been accounted for in unit or feature tests, and in the subsequent script of the program itself. Test coverage is 97.03%. No Bonus challenge was completed.

Edge cases have been defended against, and end users of this program are able to define the airport capacity themselves (see capacity_tests file in Feature Tests for more details)

Authors

This was forked from the Airport Challenge, so the task and its supporting files were authored by @makersacademy. This solution, including feature tests, spec and library files were written by me on 8th - 9th July 2017.

airport_challenge's People

Contributors

tansaku avatar annalaise avatar silvabox avatar neoeno avatar dbugsy avatar leoallen85 avatar spike01 avatar anitacanita avatar bebbs avatar michaellennox avatar mihailiviucojocar avatar nikeshashar avatar sjmog avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.