N-queens minimum and knights and bishops: Difference between revisions
N-queens minimum and knights and bishops (view source)
Revision as of 19:20, 6 July 2022
, 1 year ago→{{header|Raku}}: simplify
(added Raku programming solution) |
m (→{{header|Raku}}: simplify) |
||
Line 1,737:
@board = [ [ False xx $n ] xx $n ];
unless piece eq 'K' {
@diag2 = ^$n .map:
@diag2Lookup = @diag1Lookup = [ False xx 2*$n-1 ]
}
|