From 919f966ec350dd595409dc07a1cc6a1fac612346 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Tue, 10 Dec 2024 18:39:19 -0500 Subject: [PATCH] rename Solutions to Puzzle --- .gitignore | 1 + 2024/10/Part1.pm | 4 ++-- 2024/10/Part2.pm | 1 - 2024/10/Solution.pm => perl-lib/AoC/Puzzle.pm | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename 2024/10/Solution.pm => perl-lib/AoC/Puzzle.pm (96%) 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;