diff options
| author | 冯昶 <fengchang@novel-supertv.com> | 2025-08-18 15:06:41 +0800 |
|---|---|---|
| committer | 冯昶 <fengchang@novel-supertv.com> | 2025-08-18 15:06:41 +0800 |
| commit | dca58b342f577b02e5f39128e695bf1f41c114e0 (patch) | |
| tree | 1b6b92f004369345f1fc11727e3a8273c0181f0a | |
| parent | 16a540adb8bb647b99b42fbac92fe0da04c1c54c (diff) | |
| download | perlweeklychallenge-club-dca58b342f577b02e5f39128e695bf1f41c114e0.tar.gz perlweeklychallenge-club-dca58b342f577b02e5f39128e695bf1f41c114e0.tar.bz2 perlweeklychallenge-club-dca58b342f577b02e5f39128e695bf1f41c114e0.zip | |
fix
| -rwxr-xr-x | challenge-335/feng-chang/raku/ch-2.raku | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge-335/feng-chang/raku/ch-2.raku b/challenge-335/feng-chang/raku/ch-2.raku index a9aefa06bb..4c41bd5ae5 100755 --- a/challenge-335/feng-chang/raku/ch-2.raku +++ b/challenge-335/feng-chang/raku/ch-2.raku @@ -12,8 +12,8 @@ my @moves = EVAL $moves; my $any-row-col-diagonal = ( |(@board[$_ ].all for ^3), |(@board[*;$_].all for ^3), - (@board[0;0],@board[1;1],@board[2;2]).all, - (@board[0;2],@board[1;1],@board[2;0]).all, + (@board[$_;$_ ] for ^3).all, + (@board[$_;2-$_] for ^3).all, ).any; put do given @board { |
