about summary refs log tree commit diff stats
path: root/lib/Octans
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Octans')
-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);
                 }
             }