Go the the relevant year and look at the README.md file for that year for details of that year's solutions.
I started with 2023, and am now working my way from 2015. Keep an eye on the list below for progress.
- 2015
- Go
- 2016
- Go (WIP)
- 2017
- 2018
- 2019
- 2020
- 2021
- 2022
- 2023
- JavaScript
- 2024
- Go (WIP)
I'm using Go now for these challenges, starting for 2015 and working upwards.
For Go solutions, these can be ran from the homepage as follows:
go run ./2015/go/day01to run with example input, or
go run ./2015/go/day01 ./inputto run with the input at the path given.
You can run
bash createJsDay.sh <day> <path>to create the template for a new day in JavaScript. To do this, ensure that there is a dayx template folder in the destination.
Tip: Add '0' to the start of the day number if it is less than 10, e.g. 01 instead of 1, for better ordering!
Run
bash createGoDay.sh <day> <path>to create the template for a new day in Go. To do this, ensure that there is a dayx template folder in the destination.
Tip: Add '0' to the start of the day number if it is less than 10, e.g. 01 instead of 1, for better ordering!
- Create the year folder, eg.
mkdir -p 2017/go - In the folder, run
go mod init aoc-2017, then cd back to the root of this repo - Add this to the
go.workfile in the root - Add the dayx folder to enable the template to work
- Run
bash createGoDay.sh 01 ./2017/go