-<Project Sdk="Microsoft.NET.Sdk">\r
-\r
+<Project Sdk="Microsoft.NET.Sdk">\r
<PropertyGroup>\r
<OutputType>Exe</OutputType>\r
<TargetFramework>netcoreapp2.1</TargetFramework>\r
</PropertyGroup>\r
-\r
<ItemGroup>\r
+ <Compile Include="Day02.fs" />\r
<Compile Include="Day01.fs" />\r
<Compile Include="Program.fs" />\r
-\r
- <Content Include="Data\day01.input">\r
+ <Content Include="Data/day01.input">\r
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>\r
</Content>\r
</ItemGroup>\r
-\r
-</Project>\r
+</Project>
\ No newline at end of file
\r
open System\r
\r
-\r
let parseInput (str : string) : int[] =\r
str.Split ([| "\r\n"; "\r"; "\n" |], StringSplitOptions.RemoveEmptyEntries) |> Array.map int\r
\r
--- /dev/null
+module AdventOfCode2018.Day02\r
+\r
+open System\r
+\r
+let parseInput (str : string) : string[] =\r
+ str.Split ([| "\r\n"; "\r"; "\n" |], StringSplitOptions.RemoveEmptyEntries)\r
+\r
+let containsN (id : string) : bool =\r
+ false\r
+\r
let changes = File.ReadAllText "Data/day01.input" |> Day01.parseInput\r
sprintf "part1 = %A, part2 = %A" (Day01.finalFrequency changes) (Day01.firstDuplicate changes)\r
\r
+let day02 () =\r
+ //let input = File.ReadAllText "Data/day02.input" |> Day01.parseInput\r
+ "day02"\r
+\r
let days : (unit -> string) array =\r
[|\r
day01\r
+ day02\r
|]\r
\r
let doDay (n : int) =\r