diff options
Diffstat (limited to 'aoc-2022-dotnet/Day21')
-rw-r--r-- | aoc-2022-dotnet/Day21/Day21.fsproj | 22 | ||||
-rw-r--r-- | aoc-2022-dotnet/Day21/Program.fs | 9 |
2 files changed, 31 insertions, 0 deletions
diff --git a/aoc-2022-dotnet/Day21/Day21.fsproj b/aoc-2022-dotnet/Day21/Day21.fsproj new file mode 100644 index 0000000..b9a3919 --- /dev/null +++ b/aoc-2022-dotnet/Day21/Day21.fsproj @@ -0,0 +1,22 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>Exe</OutputType> + <TargetFramework>net7.0</TargetFramework> + </PropertyGroup> + + <ItemGroup> + <Content Include="test.txt"> + <CopyToOutputDirectory>Always</CopyToOutputDirectory> + </Content> + <Content Include="input.txt"> + <CopyToOutputDirectory>Always</CopyToOutputDirectory> + </Content> + <Compile Include="Program.fs" /> + </ItemGroup> + + <ItemGroup> + <ProjectReference Include="..\Common\Common.fsproj" /> + </ItemGroup> + +</Project> diff --git a/aoc-2022-dotnet/Day21/Program.fs b/aoc-2022-dotnet/Day21/Program.fs new file mode 100644 index 0000000..e5d8920 --- /dev/null +++ b/aoc-2022-dotnet/Day21/Program.fs @@ -0,0 +1,9 @@ +module Day21 + +open System.IO +open FParsec +open Common + +let test = File.ReadLines("test.txt") + +let input = File.ReadLines("input.txt") |