Skip to content

kewanfr/Advent-Of-Code-2024

Repository files navigation

Advent Of Code 2024

==================

What is Advent of Code?

Advent of Code is an Advent calendar of small coding puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. It's a tradition that Eric Wastl began in 2015, after he created a. You can read up about page for more information. It's a great way to learn a new language or practice your programming skills. It's also a great way to have some fun with friends or co-workers!

How do I participate?

Go to the Advent of Code website and sign up. You'll get a unique input file that you can use to solve the puzzles.

Why this repository?

I'm using this repository to keep track of my solutions and to share them.

Installation

pip install requests

Get your session cookie

  1. Go to Advent of Code and log in.
  2. Open the developer tools (F12).
  3. Go to the Application tab.
  4. Under Cookies, copy the value of the session cookie.
  5. Create a session.txt file in the root of this repository and paste the value of the session cookie in it.

Usage

Get today's problem and input

python get_problem.py

Get today's problem only (without input)

python get_problem.py -p

Others

Get input of a specific day / year

python get_input_file.py 2020 1

-> This will create the folder 2020 Dec 1 and the input file input.txt in it.

Get problem and input of a specific day / year

python getproblem.py 2020 1

-> This will create the folder 2020 Dec 1, the problem file README.md and the input file input.txt in it.

Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published