Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 708 Bytes

readme.md

File metadata and controls

47 lines (32 loc) · 708 Bytes

Advent of code for elixir

work in progress, but you can fork and use it as you like. I wanted something ready for me to use for the first day of AoC. I'll keep improving it as I go.

Prepare the environment

Install deps

mix deps.get

Create the env file

touch .env

Add the session cookie in the .env file

echo "AOC_SESSION=your_session_cookie" > .env

Run the tasks

Fetch the input, description and setup the solution

# mix run download YEAR DAY
mix setup 2024 1

Run the solution

# mix run solve YEAR DAY PART
mix solve 2024 1 1

Run and submit the solution

mix solve 2024 1 1 --submit # or -s

Contributing

Yes, please