GithubHelp home page GithubHelp logo

advent-of-code's Introduction

๐ŸŽ„ Advent of Code ๐ŸŽ„

Lint Code style: black License: MIT Github last commit

This repository contains my solutions to the Advent of Code puzzles. Each folder contains all the Python solutions for a given year, and each file contains the solution for a given day.

About Advent of Code

Advent of Code is an Advent calendar of small programming puzzles that has been running since 2015. The puzzles are released daily, and each puzzle is unlocked after the previous one is solved. The puzzles are designed to be solved in any programming language.

Purpose

I'm using this repository to have fun using python syntax and learn new and interesting way of solving problems. If you are not afraid of oneliners and/or pythonic code, you are welcome to have a look at the code.

Usage

Prerequisites

The project uses poetry to manage dependencies and virtual environments, but you can also use pip or your global python installation if you have the packages listed in pyproject.toml installed. To install the project packages, run:

poetry install

Run solutions

Before running the solution, you must add your input in the correct folder with the name input.

While being in a python env, you can run each day's solution with ./main.py directly from the day's folder. Otherwise, use python main.py.

New day

To generate the directory for the current day, save your session cookie in the session_cookie file and run ./generate.py.

Linting

The project uses black and pylint to lint the code. To lint the code, run pylint path/to/file.py. To run black, simply use black path/to/file.py in the root directory.

License

The contents of this repository are covered under the MIT License.

advent-of-code's People

Contributors

turtlesmoke avatar

Stargazers

Andy Woz avatar Sebastian Woelke avatar Luis Capella avatar Aliya Prokofyeva avatar Jingyi Yang 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.