GithubHelp home page GithubHelp logo

seacompfest's Introduction

SOFTWARE ENGINEERING ACADEMY

COMPFEST X - GO-JEK

SECOND STAGE FINAL ASSIGNMENT

Repository

Assumptions
  1. Map's shape is square which is N x N
  2. Coordinate starts with (0,0) at the top-left of the map
  3. Driver doesn't block the path between user and destination
Design Decision

There are 4 classes, one module, and one main program.

Classes: Driver, User, Order, Map Module: Helper

I chose to seperate Driver and User object for two reasons.

First reason is Driver has attribute name and User does not. Second reason is to improve readibility of my code and to avoid any confusion. Third reason is for SOLID principles which specifically is Open for Extension in the future if the class grows bigger.

Map acts as real map object. User/Driver and Map is two seperate objects. After User/Driver has been initialized, User/Driver can be inserted into Map object through its own method. This is done to isolate each object

Order object acts to hold order attributes.

Helper module contains functions which helps the development and avoid DRY code.

How to Run
  1. Install rvm and ruby
  2. Open terminal
  3. cd to main directory
  4. type ruby main.rb

seacompfest's People

Contributors

gejimayu avatar

Watchers

James Cloos 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.