rename Solutions to Puzzle
This commit is contained in:
parent
9fb6d13df2
commit
919f966ec3
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@ pnpm-lock.yaml
|
|||||||
*.orig
|
*.orig
|
||||||
deno.lock
|
deno.lock
|
||||||
input
|
input
|
||||||
|
solutions.yml
|
||||||
|
@ -2,7 +2,7 @@ use lib qw/ . /;
|
|||||||
use lib qw! ../../perl-lib !;
|
use lib qw! ../../perl-lib !;
|
||||||
|
|
||||||
use 5.36.0;
|
use 5.36.0;
|
||||||
use Solution;
|
use AoC::Puzzle;
|
||||||
|
|
||||||
package Part1;
|
package Part1;
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ use Moo;
|
|||||||
use AoC::Grid;
|
use AoC::Grid;
|
||||||
use List::AllUtils qw/ sum /;
|
use List::AllUtils qw/ sum /;
|
||||||
|
|
||||||
extends 'Solution';
|
extends 'AoC::Puzzle';
|
||||||
|
|
||||||
has '+input', default => sub ($self) {
|
has '+input', default => sub ($self) {
|
||||||
AoC::Grid->new( string => $self->file_slurp );
|
AoC::Grid->new( string => $self->file_slurp );
|
||||||
|
@ -2,7 +2,6 @@ use lib qw/ . /;
|
|||||||
use lib qw! ../../perl-lib !;
|
use lib qw! ../../perl-lib !;
|
||||||
|
|
||||||
use 5.36.0;
|
use 5.36.0;
|
||||||
use Solution;
|
|
||||||
|
|
||||||
package Part2;
|
package Part2;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use 5.36.0;
|
use 5.36.0;
|
||||||
|
|
||||||
package Solution;
|
package AoC::Puzzle;
|
||||||
|
|
||||||
use Moo;
|
use Moo;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user