Code Monkey home page Code Monkey logo

coding-challenge-soccer's Introduction

Jane Coding Test solution

This is my solution for the Jane Soccer Challenge, running on Python 3.

I've confirmed this works on Mac Bash, Windows Bash, and Windows CMD.

Setup

Simply clone or download this repo. All code and tests execute from the base coding-challenge-soccer directory. Tests require pytest, but normal execution doesn't require any additional libraries.

Tests

Tests are contained in the src/tests folder, but are run from the base directory.

Run tests by executing:

python3 -m pytest -v

Running

python3 main.py input_filename [output_filename]

The program can be run, either by piping in data, or providing a file location to read from (must be within the project directory or subfolder) to the main.py file.

You can optionally provide a second parameter for an output location (must also be within the project directory or subfolder--subfolder must already exist). Be aware that this will overwrite the defined output location without any warning. If no output location is provided, the output will be printed to stdout.

Examples

python3 main.py sample-input.txt

python3 main.py sample-input.txt output-file.txt (Giving output file name)

cat sample-input.txt | python3 main.py (sample stdin on Bash)

coding-challenge-soccer's People

Contributors

amrosenfeld avatar iheartmartin avatar zoey4560 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.