GithubHelp home page GithubHelp logo

hell-triangle-challenge's Introduction

Hell-Triangle-Challenge

  • Introduction

    • This project is a solution to "Hell Triangle - Challenge" problem explained in .\doc\HellsTriangle.pdf
    • This project was designed using the python program language, their benefits to this project include:
      • Ease to create classes
      • The slice functionality turn on easy the manipulation of arrays
      • Ease to manipulate test cases using PyUnit framework
  • Using the code

    • To use this solution is necessary import the content of it using the file "HellsTriangle.py"
    • Create an object instance using "HellsTriangle" constructor
    • To set up the inputs, using the constructor or calling the function "setTriangle", use the list of lists structure representing a triangle (more explainations in .\doc\HellsTriangle.pdf)
    • To get the max total result call the "getMaxTotal" function
  • Test cases

    • The test cases were done using the PyUnit framework because of the facilities to generate simple case tests

    • Add

      • To add more test cases is necessary define:
        • Name of the test case, always beginning with "test" string
        • The input of the test case
        • The right answer of that test case
        • Add a new test case using the previous definitions as exemplified in the file .\src\HellsTriangleTests.py
    • Run

      • To run the defined test cases just run the command line: "python3 HellTriangleTests.py"
      • To another versions of python with the library "unittest" available (python version > 2.1) "python HellTriangleTests.py"

hell-triangle-challenge's People

Watchers

James Cloos avatar Renato Albuquerque 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.