Knight's tour: Difference between revisions
Content added Content deleted
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: auto-vivification pretty reliable lately) |
|||
Line 9,677: | Line 9,677: | ||
(formerly Perl 6) |
(formerly Perl 6) |
||
{{trans|Perl}} |
{{trans|Perl}} |
||
{{works with|rakudo|2015-09-17}} |
|||
<lang perl6>my @board; |
<lang perl6>my @board; |
||
Line 9,701: | Line 9,700: | ||
# Record current move |
# Record current move |
||
push @moves, to_algebraic($i,$j); |
push @moves, to_algebraic($i,$j); |
||
# @board[$i] //= []; # (uncomment if autoviv is broken) |
|||
@board[$i][$j] = $move; |
@board[$i][$j] = $move; |
||