My solutions to the advent of code 2021
  • F# 86%
  • C# 8.6%
  • Python 5.4%
Find a file
2022-02-20 23:23:25 +00:00
day01 Added minimal python solution 2021-12-01 09:10:05 +00:00
day02 Python solution for day 2 2021-12-02 12:15:50 +00:00
day03 F# solution for day 3 2021-12-03 12:40:24 +00:00
day04 Slight string.split refactor 2021-12-05 10:25:58 +00:00
day05 Removed code to calculate grid size for day 5, all numbers in 0..999 2021-12-05 11:54:14 +00:00
day06 Refactored day 6 a little more 2021-12-06 09:04:40 +00:00
day07 Refactored d7p2, using trianglur numbers 2021-12-07 12:28:36 +00:00
day08 Refactored d8p2 a little 2021-12-08 15:03:15 +00:00
day09 Refactored day 9 2021-12-09 18:19:18 +00:00
day10 Minor refactor 2021-12-10 09:17:15 +00:00
day11 Solution for day 11 2021-12-11 17:18:03 +00:00
day12 Solution for day 12 2021-12-12 13:05:58 +00:00
day13 Solution for day 14 2021-12-14 23:44:55 +00:00
day14 Solution for day 14 2021-12-14 23:44:55 +00:00
day15 Added solution for day 15 using dijkstras algorithm 2021-12-15 21:43:03 +00:00
day16 Forgot to commit, solutions for d16p2 and day 17 2021-12-17 11:33:59 +00:00
day17 Forgot to commit, solutions for d16p2 and day 17 2021-12-17 11:33:59 +00:00
day18 Horrible c# solution for day 18 2022-02-20 23:23:25 +00:00
.gitignore Added .idea to .gitignore 2022-02-20 23:19:46 +00:00
LICENSE Initial commit 2021-11-30 17:55:59 +00:00
README.md Added F# assertion command 2021-12-01 00:35:14 +00:00

Advent of Code 2021

This repo contains my solutions to the Advent of Code 2021 using primarily F#, with C# and Python as fallbacks for when I'm stuck.

The code will likely be bad.

Setup

I'm using .Net 6.0 and Python 3.10.

Python requirements (if there are any) can be installed with pip install -r requirements.txt.

Any C# scripts will require dotnet-script.

Running solutions/tests

Any tests I write will likely just be asserts in each solution file.

How to run the solution file for each day depends on the language.

F#

For F# solutions dotnet fsi dayXX/solution.fsx

For F# solutions including assertions dotnet fsi -d:DEBUG dayXX/solution.fsx

C#

For C# solutions dotnet script dayXX/solution.csx

Python

For Python solutions python dayXX/solution.py