AdamTuraj / advent-of-code

My answers to the 2022 advent of code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

advent of code banner

πŸŽ„ Advent of Code 2022 πŸŽ„

Running the code

Requirements

  • Node.JS 18

Setting your cookie

To get your session cookie, go to the Advent of Code website, and while logged in:

  • For Firefox: Right click and select "Inspect Element". In the "Storage" tab select "Cookies"
  • For Chrome: Right click and select "Inspect" and in the "Application" tab select "Cookies"

You will then find a row with a key of "session". Copy and paste that into a file called .env formatted as showed in the example.

Running the code

Once installed run the following (replacing X with the day you are looking for)

node Solutions/dayX.js

Progress Overview

Day Challenge Name Stars
1 Calorie Counting ⭐⭐
2 Rock Paper Scissors ⭐⭐
3 Rucksack Reorganization ⭐⭐
4 Camp Cleanup ⭐⭐
5 Supply Stacks ⭐⭐
6 Tuning Trouble ⭐⭐
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

About

My answers to the 2022 advent of code

License:MIT License


Languages

Language:JavaScript 99.9%Language:Shell 0.1%