Skip to content

MicheleBellitti/AdventOfCode

Repository files navigation

Advent of Code

Welcome to my Advent of Code solutions repository! This repository contains my solutions to the Advent of Code puzzles. Each year, a new set of puzzles is released, and this repository is organized to handle different years and versions.

Directory Structure

The repository is organized by year, with each year having its own directory. Inside each year's directory, you will find the solutions to the puzzles for that specific year.

Usage

To run the solutions, you need to have Python 3.10 installed. To install it:

  • On Windows, you can download it from here.
  • On Linux, you can run the following commands:
sudo apt-get update
sudo apt-get install python3.6
brew install python@3.10

Then, choose a year and a day and change into the directory for that year and day.

cd YYYY/dayXX/

For example, if you want to run the solutions for 2022's day 1, you would run the following:

cd 2022/day01/

Then, you can run the solutions with the following command:

python3 solution.py < in.txt

In addition, you can run the daily solution by running:

aoi

or

aot

For testing it on a smaller input.