Jump to content

Straddling checkerboard: Difference between revisions

m
→‎{{header|Perl 6}}: tweak: rows of 'table' can be flattened
m (made expression more logical)
m (→‎{{header|Perl 6}}: tweak: rows of 'table' can be flattened)
Line 1,513:
@!flat_board.splice( $u max $v, 0, Any );
 
@!table = [ ' ', | [ 0 .. 9] ],
[ ' ',|@!flat_board[ 0 .. 9].map: {.defined ?? $_ !! ' '} ],
[ $u, |@!flat_board[10 .. 19] ],
[ $v, |@!flat_board[20 .. 29] ];
 
my @order = 0..9; # This may be passed as a param in the future
2,392

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.