diff options
author | Andinus <andinus@nand.sh> | 2021-06-14 20:52:15 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2021-06-14 21:09:34 +0530 |
commit | 06556e263129d4b7391eab8adc7ccfe96fc90ffa (patch) | |
tree | ec69fab670c87b43139edad81d8cc510b3f16fb8 /lib/Octans | |
parent | c1712a0f2146e24467067bd901a47772610a7e87 (diff) | |
download | octans-without-www.tar.gz |
Use ends-with, comb without-www
This makes it work with Raku 2019.11.
Diffstat (limited to 'lib/Octans')
-rw-r--r-- | lib/Octans/Puzzle.rakumod | 4 |
1 files 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); } } |