Giter Site home page Giter Site logo

adventofcode2018's Introduction

Solving Puzzles at AdventOfCode.com

General

In this repo I'll solve the AoC-Challanges as far as I want (and have time) to.

Feel Free to use this as a simplified structure for your own scripts.

Installation

  • Install python3
  • Download this repo
  • Go into the directory of this repo
  • $ python aoc.py -h

Structure

Your solutions go into the same directory as the main file aoc.py named puzzle<Day>.py

Example content puzzle<Day>.py

def solve_part_1(puzzle_input):
    return "My solution for part 1"

def solve_part_2(puzzle_input):
    return "My solution for part 2"

Hint

You can use the log(message)-Function as defined in aoc.py. It'll be automatically injected upon execution time.

Input/Puzzle

You can either specify a file using --file <Path>, a string for short inputs with --input <Input> or place the file into inputs/input<Day> (without any file extension).

Disclaimers

The inputs found, are my personal ones. If you want your solution, you can replace them with your own or specify with --path or --input.

The solutions sometimes may not be 'political correct' to the theory behind the puzzles. I try to solve them with minimal help and research as possible. This repo still should contain my solutions and not the ones hanging out on wikipedia or similar sites.

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.