Skip to content

This repository contains my solutions to the Advent of code puzzles.

License

Notifications You must be signed in to change notification settings

TurtleSmoke/Advent-of-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎄 Advent of Code 🎄

Ruff CI 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 uv 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:

uv sync

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 uv run 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 dd.

CI

The project uses ruff for linting and formating the code. You can use ruff format to format and ruff check to lint

License

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

About

This repository contains my solutions to the Advent of code puzzles.

Resources

License

Stars

Watchers

Forks