Skip to content

RensR/AdventOfCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdventOfCode

Year Language
2023 Rust
2022 Golang
2021 Golang
2020 C#
2019 Golang
2018 Golang

Run cargo aoc to get the answers to both part 1 and part 2 for the latest day.

Run cargo test to run the tests for the latest day.

Run cargo aoc input to download the puzzle input for the latest day.

Run main in main.go in the daily folder to get the answers to both part 1 and part 2 for each day. Input is tested agains the tests in puzzle.go.

Run main in main.go in the daily folder to get the answers to both part 1 and part 2 for each day. Input is tested agains the tests in puzzle.go.

To run the C# solution open the .sln file in your favorite C# IDE. Then create a config.json file with the following content:

{
  "cookie": "session=****************************************************************************",
  "year": 2020,
  "days": [ "1..25" ]
}

Log into https://adventofcode.com/ to retrieve your cookie, this will allow the program to auto download all puzzle input. You will need at least .NET 5.0 to run the solution. Please make sure you are running the latest C# and .NET versions.

Simply run the Go files like any others. Input data is under version control, to run with your own input please replace it within the file or replace the contents of the input.txt files.