Initialise day 3

This commit is contained in:
George Thomas 2025-12-03 11:18:04 +00:00
parent 238e26dccf
commit b99bacc1e3
6 changed files with 22 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import Data.Text.IO qualified as T
import Puzzle import Puzzle
import Puzzles.Day1 qualified as Day1 import Puzzles.Day1 qualified as Day1
import Puzzles.Day2 qualified as Day2 import Puzzles.Day2 qualified as Day2
import Puzzles.Day3 qualified as Day3
import Test.Tasty import Test.Tasty
import Test.Tasty.Golden (goldenVsString) import Test.Tasty.Golden (goldenVsString)
import Test.Tasty.Ingredients.ConsoleReporter import Test.Tasty.Ingredients.ConsoleReporter
@ -21,6 +22,7 @@ main =
testGroup t $ testGroup t $
[ Day1.puzzle [ Day1.puzzle
, Day2.puzzle , Day2.puzzle
, Day3.puzzle
] ]
<&> \Puzzle{number, parser, parts} -> <&> \Puzzle{number, parser, parts} ->
let let

13
haskell/Puzzles/Day3.hs Normal file
View File

@ -0,0 +1,13 @@
module Puzzles.Day3 (puzzle) where
import Puzzle
puzzle :: Puzzle
puzzle =
Puzzle
{ number = 3
, parser = _
, parts =
[ _
]
}

View File

@ -12,6 +12,7 @@ executable aoc
Puzzle Puzzle
Puzzles.Day1 Puzzles.Day1
Puzzles.Day2 Puzzles.Day2
Puzzles.Day3
default-language: GHC2024 default-language: GHC2024
default-extensions: default-extensions:
BlockArguments BlockArguments

4
inputs/examples/3 Normal file
View File

@ -0,0 +1,4 @@
987654321111111
811111111111119
234234234234278
818181911112111

@ -1 +1 @@
Subproject commit 6de81f9ec54f2f5ecdfec98ab4e8a46e0bc76b0f Subproject commit 69a0d6cdd7aa47dedb9b6653a27bd5e717d766fb

1
outputs/examples/3/1 Normal file
View File

@ -0,0 +1 @@
357