aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-089/simon-proctor/raku/ch-2.raku4
1 files changed, 0 insertions, 4 deletions
diff --git a/challenge-089/simon-proctor/raku/ch-2.raku b/challenge-089/simon-proctor/raku/ch-2.raku
index a6615fbee6..c717fd08f0 100644
--- a/challenge-089/simon-proctor/raku/ch-2.raku
+++ b/challenge-089/simon-proctor/raku/ch-2.raku
@@ -2,10 +2,6 @@
use v6;
-my @rows = ( (0,1,2),(3,4,5),(6,7,8),
- (0,3,6),(1,4,7),(2,3,8),
- (0,4,8),(2,4,6) );
-
#| Print a 3x3 grid of the number 1-9 where each horizontal, vertical and diagonal adds up to 15
sub MAIN( Bool :a(:$all) = False ) {
for (1..9).permutations().race().grep( -> @grid { [==] ( 15, |@grid[[0,1,2],[3,4,5],[6,7,8],[0,3,6],[1,4,7],[2,5,8],[0,4,8],[2,4,6]].map( -> @a { [+] @a } ) ) } ) -> @grid {