- Create a
.envfile with your Advent of Code session token:
AOC_SESSION=your_session_token_here
To get your session token, login to Advent of Code, inspect your cookies, and copy the value of the 'session' cookie.
- Create a new day's solution:
make new year=2023 day=1- Run a specific solution:
make run year=2023 day=1.
├── internal/
│ └── utils/ # Common utilities
├── yearXXXX/ # Year folders
│ └── dayXX/ # Day folders
│ ├── main.go # Solution code
│ └── input.txt # Day's input
└── main.go # Entry point