Initialise day 10
This commit is contained in:
parent
c4c2c82f81
commit
4b45590f37
@ -14,6 +14,7 @@ import Puzzles.Day6 qualified as Day6
|
||||
import Puzzles.Day7 qualified as Day7
|
||||
import Puzzles.Day8 qualified as Day8
|
||||
import Puzzles.Day9 qualified as Day9
|
||||
import Puzzles.Day10 qualified as Day10
|
||||
import Test.Tasty.Ingredients.ConsoleReporter
|
||||
|
||||
main :: IO ()
|
||||
@ -32,6 +33,7 @@ main =
|
||||
, Day7.puzzle
|
||||
, Day8.puzzle
|
||||
, Day9.puzzle
|
||||
, Day10.puzzle
|
||||
]
|
||||
<&> \Puzzle{number, parser, parts, extraTests} ->
|
||||
let
|
||||
|
||||
15
haskell/Puzzles/Day10.hs
Normal file
15
haskell/Puzzles/Day10.hs
Normal file
@ -0,0 +1,15 @@
|
||||
module Puzzles.Day10 (puzzle) where
|
||||
|
||||
import Pre
|
||||
|
||||
puzzle :: Puzzle
|
||||
puzzle =
|
||||
Puzzle
|
||||
{ number = 10
|
||||
, parser = mempty
|
||||
, parts =
|
||||
[ \() ->
|
||||
()
|
||||
]
|
||||
, extraTests = mempty
|
||||
}
|
||||
@ -19,6 +19,7 @@ executable aoc
|
||||
Puzzles.Day7
|
||||
Puzzles.Day8
|
||||
Puzzles.Day9
|
||||
Puzzles.Day10
|
||||
default-language: GHC2024
|
||||
default-extensions:
|
||||
BlockArguments
|
||||
|
||||
3
inputs/examples/10
Normal file
3
inputs/examples/10
Normal file
@ -0,0 +1,3 @@
|
||||
[.##.] (3) (1,3) (2) (2,3) (0,2) (0,1) {3,5,4,7}
|
||||
[...#.] (0,2,3,4) (2,3) (0,4) (0,1,2) (1,2,3,4) {7,5,12,7,2}
|
||||
[.###.#] (0,1,2,3,4) (0,3,4) (0,1,2,4,5) (1,2) {10,11,11,5,10,5}
|
||||
@ -1 +1 @@
|
||||
Subproject commit 3f57387897cb0f36f145088c1c9fcf7935e13322
|
||||
Subproject commit e78eeb06c1bde97417b790a191335c159d9e0eaf
|
||||
1
outputs/examples/10/1
Normal file
1
outputs/examples/10/1
Normal file
@ -0,0 +1 @@
|
||||
7
|
||||
Loading…
x
Reference in New Issue
Block a user