From 06556e263129d4b7391eab8adc7ccfe96fc90ffa Mon Sep 17 00:00:00 2001 From: Andinus Date: Mon, 14 Jun 2021 20:52:15 +0530 Subject: Use ends-with, comb This makes it work with Raku 2019.11. --- lib/Octans/Puzzle.rakumod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Octans/Puzzle.rakumod b/lib/Octans/Puzzle.rakumod index 8e184f8..52da74b 100644 --- a/lib/Octans/Puzzle.rakumod +++ b/lib/Octans/Puzzle.rakumod @@ -7,8 +7,8 @@ class Puzzle is export { for 0 .. @!grids[$y].end -> $x { # Remove the markers from the puzzle & push the # positions to @!gray-squares. - if @!grids[$y][$x].match("*") -> $match { - @!grids[$y][$x] = $match.replace-with(""); + if @!grids[$y][$x].ends-with("*") { + @!grids[$y][$x] = @!grids[$y][$x].comb[0]; push @!gray-squares, ($y, $x); } } -- cgit 1.4.1-2-gfad0