Code Monkey home page Code Monkey logo

elevator's Introduction

elevator

one last project for cosi 105b: an elevator simulation.

Code Climate Report

Code Climate

Basic Structure

My implementation of the given prompt has the following structure:

Building
  • Creates and sets up Floors and Elevators.
  • Post clock-tick, determines when passengers go on or or stay off an elevator based one each individual's needs.
Floors
  • Contains a list of People who are waiting and who have arrived on that floor.
Persons
  • Knows its destination of choice.
Elevators
  • Meat and body of the program.
  • Chooses what direction to go in based on the requested destinations.
  • Sets the direction that the program desires fosho
  • Can drop the kids off at school
Testing
  • Using fundamentals of test-driven design, I added some tests in prior to fleshing out the rest of the program. In the development process, however, many tests became incompatible with various structural/design changes to the program, and so were removed/set aside for later.
Some interesting design

Can't say this is the most well designed, intricately, elegant, and fascinating program. I did, however, incorporate some nifty tricks into the code. For example, I have written the code for several initialize functions to take a hash as a perimeter. This allows for an unordered parameters list when initializing these objects, which would be a lot easier to handle (no need to declare parameters in a specific order!)

elevator's People

Contributors

recrudescence 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.