Knight's tour: Difference between revisions

m
→‎{{header|Raku}}: auto-vivification pretty reliable lately
m (→‎{{header|Raku}}: auto-vivification pretty reliable lately)
Line 9,677:
(formerly Perl 6)
{{trans|Perl}}
{{works with|rakudo|2015-09-17}}
<lang perl6>my @board;
 
Line 9,701 ⟶ 9,700:
# Record current move
push @moves, to_algebraic($i,$j);
# @board[$i] //= []; # (uncomment if autoviv is broken)
@board[$i][$j] = $move;
2,392

edits