diff --git a/.gitignore b/.gitignore index 8fe6caa..efa8ad6 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ pnpm-lock.yaml *.orig deno.lock input +solutions.yml diff --git a/2024/10/Part1.pm b/2024/10/Part1.pm index 9fabdf9..83f6b3d 100644 --- a/2024/10/Part1.pm +++ b/2024/10/Part1.pm @@ -2,7 +2,7 @@ use lib qw/ . /; use lib qw! ../../perl-lib !; use 5.36.0; -use Solution; +use AoC::Puzzle; package Part1; @@ -11,7 +11,7 @@ use Moo; use AoC::Grid; use List::AllUtils qw/ sum /; -extends 'Solution'; +extends 'AoC::Puzzle'; has '+input', default => sub ($self) { AoC::Grid->new( string => $self->file_slurp ); diff --git a/2024/10/Part2.pm b/2024/10/Part2.pm index f899ecc..63606fc 100644 --- a/2024/10/Part2.pm +++ b/2024/10/Part2.pm @@ -2,7 +2,6 @@ use lib qw/ . /; use lib qw! ../../perl-lib !; use 5.36.0; -use Solution; package Part2; diff --git a/2024/10/Solution.pm b/perl-lib/AoC/Puzzle.pm similarity index 96% rename from 2024/10/Solution.pm rename to perl-lib/AoC/Puzzle.pm index 095ded1..d3b938f 100644 --- a/2024/10/Solution.pm +++ b/perl-lib/AoC/Puzzle.pm @@ -1,6 +1,6 @@ use 5.36.0; -package Solution; +package AoC::Puzzle; use Moo;