aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2021-06-14 20:52:15 +0530
committerAndinus <andinus@nand.sh>2021-06-14 21:09:34 +0530
commit06556e263129d4b7391eab8adc7ccfe96fc90ffa (patch)
treeec69fab670c87b43139edad81d8cc510b3f16fb8
parentc1712a0f2146e24467067bd901a47772610a7e87 (diff)
downloadoctans-without-www.tar.gz
Use ends-with, combwithout-www
This makes it work with Raku 2019.11.
-rw-r--r--lib/Octans/Puzzle.rakumod4
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);
}
}