Skip to content

tofoss/aoc-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code Go

Creating a new day

make new YEAR=2021 DAY=1

This creates the day structure and adds the import to main.go.

Running solutions

go run . -year 2021 -day 1           # Run with actual input
go run . -year 2021 -day 1 -example  # Run with example input

Input files go in input/YEAR/DAY/actual.txt and input/YEAR/DAY/example.txt.

Auto-fetch inputs (optional)

To automatically download inputs, create a .env file with your session cookie:

  1. Log in to adventofcode.com
  2. Open dev tools (F12) → Application/Storage → Cookies
  3. Copy the session cookie value
  4. Add to .env: AOC_SESSION_COOKIE=your_cookie_here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published