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!
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.
I'm using this repository to keep track of my solutions and to share them.
pip install requests- Go to Advent of Code and log in.
- Open the developer tools (F12).
- Go to the
Applicationtab. - Under
Cookies, copy the value of thesessioncookie. - Create a
session.txtfile in the root of this repository and paste the value of thesessioncookie in it.
python get_problem.pypython get_problem.py -ppython get_input_file.py 2020 1-> This will create the folder 2020 Dec 1 and the input file input.txt in it.
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.
- Eric Wastl for creating Advent of Code.
- António Ramadas for creating aoc-to-markdown python
- Kyle Farnung for creating aoc-to-markdown chrome extension
- Me (Kewan) for this repo.