Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/applejag/adventofcode-2020-fsharp
My attempt at Advent of Code 2020 using F# https://adventofcode.com/2020
https://github.com/applejag/adventofcode-2020-fsharp
advent-of-code advent-of-code-2020 advent-of-code-fsharp dotnet-5 fsharp
Last synced: about 2 months ago
JSON representation
My attempt at Advent of Code 2020 using F# https://adventofcode.com/2020
- Host: GitHub
- URL: https://github.com/applejag/adventofcode-2020-fsharp
- Owner: applejag
- Created: 2020-12-01T19:31:45.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-14T07:24:24.000Z (about 4 years ago)
- Last Synced: 2024-10-11T10:14:51.089Z (3 months ago)
- Topics: advent-of-code, advent-of-code-2020, advent-of-code-fsharp, dotnet-5, fsharp
- Language: F#
- Homepage:
- Size: 177 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code 2020 via F#
This repo contains my attempt at Advent of Code 2020
().## Running it
- Install .NET 5.0
- Run with the `dotnet` CLI inside the project you wish to run.
For day 1, you would run:```sh
cd src/Day01# To run it on "input.txt" in current working directory
dotnet run# To run it on some other file, example:
dotnet run -- sample.txt
```## Adding a new puzzle solution
There is a template project, named `DayXX`. To make a new one, you may first
set the following environment variable:```sh
# If using bash, zsh, sh, dash, ash...
AOC_DAY=03# If using fish
set AOC_DAY 03# If using PowerShell
$AOC_DAY='03'
```Then run the following commands:
```sh
cp -r "src/DayXX" "src/Day$AOC_DAY"
mv "src/Day$AOC_DAY/DayXX.fsproj" "src/Day$AOC_DAY/Day$AOC_DAY.fsproj"
dotnet sln add "src/Day$AOC_DAY"
```