orn688 / advent-of-code-2017

Advent of Code 2017 solutions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advent of Code Solutions

My solutions to the 2017 Advent of Code problems.

Setup

  1. Create a .env file:
cp template.env .env
  1. Log in to http://adventofcode.com/, go to developer tools in your browser, and copy the value of the session cookie. Paste this into .env as the value of SESSION_ID.
  2. Install pipenv:
pip install pipenv
  1. Install dependencies:
pipenv install

VS Code

If using VS Code, modify the value of python.pythonPath in .vscode/settings.json to your virtualenv's Python path, which can be determined by running

pipenv --venv

and appending /bin/python to the result.

Usage

Note: The .vscode directory is pre-configured for running solutions and tests in VS Code.

Running final solutions

pipenv run python solutions/inverse_captcha.py # (For example)

Running tests

pipenv run pytest

About

Advent of Code 2017 solutions


Languages

Language:Python 99.8%Language:Makefile 0.2%